From ce92964edb22cc7bf36462ea75c8810b3833a30b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 22 Feb 2023 09:08:54 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/7438 --- app/src/protyle/util/editorCommonEvent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index 66780cce5..641e7951b 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -769,7 +769,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { }); } else { // 跨窗口拖拽 const targetProtyleElement = document.createElement("template"); - targetProtyleElement.innerHTML = event.dataTransfer.getData(gutterType); + targetProtyleElement.innerHTML = `
${event.dataTransfer.getData(gutterType)}
`; targetProtyleElement.content.querySelectorAll(queryClass.substring(0, queryClass.length - 1)).forEach(elementItem => { if (elementItem.getAttribute("data-type") === "NodeBlockQueryEmbed" || !hasClosestByAttribute(elementItem, "data-type", "NodeBlockQueryEmbed")) {