From 63d5a2114fd9fb4a119b5e3e68e2786bbbcd44f1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 3 Jul 2024 22:51:46 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10528 --- app/src/protyle/util/editorCommonEvent.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index fe677ec57..2b25bbac4 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -988,6 +988,12 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { dragSame(protyle, sourceElements, targetElement, targetClass.includes("dragover__bottom"), event.ctrlKey); } } + + // https://github.com/siyuan-note/siyuan/issues/10528#issuecomment-2205165824 + editorElement.querySelectorAll(".protyle-wysiwyg--empty").forEach(item => { + item.classList.remove("protyle-wysiwyg--empty"); + }); + // 超级块内嵌入块无面包屑,需重新渲染 https://github.com/siyuan-note/siyuan/issues/7574 sourceElements.forEach(item => { if (item.getAttribute("data-type") === "NodeBlockQueryEmbed") {