diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index e92f67adb..437d7ff21 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -602,7 +602,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { ghostElement.className = "protyle-wysiwyg protyle-wysiwyg--attr"; const isKanban = blockElement.getAttribute("data-av-type") === "kanban"; if (isKanban) { - ghostElement.innerHTML = `
`; + ghostElement.innerHTML = ""; } let galleryElement: HTMLElement; let cloneGalleryElement = document.createElement("div"); @@ -614,7 +614,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { if (isKanban) { cloneGalleryElement.className = "av__kanban-group"; cloneGalleryElement.setAttribute("style", item.parentElement.parentElement.parentElement.getAttribute("style")); - cloneGalleryElement.innerHTML = ``; + cloneGalleryElement.innerHTML = ""; ghostElement.firstElementChild.appendChild(cloneGalleryElement); } else { cloneGalleryElement.classList.add("av__gallery");