This commit is contained in:
Vanessa 2022-08-31 18:17:43 +08:00
parent 5d70f3cf64
commit fb2cb8edbf
5 changed files with 9 additions and 9 deletions

View file

@ -255,7 +255,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
protyle.wysiwyg.element.querySelectorAll('[data-type="block-ref"]').forEach(item => {
if (item.textContent === "") {
fetchPost("/api/block/getRefText", {id: item.getAttribute("data-id")}, (response) => {
item.textContent = response.data;
item.innerHTML = response.data;
});
}
});