Explorar o código

:art: fix https://github.com/siyuan-note/siyuan/issues/10528

Vanessa hai 1 ano
pai
achega
63d5a2114f
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      app/src/protyle/util/editorCommonEvent.ts

+ 6 - 0
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);
                             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
                     // 超级块内嵌入块无面包屑,需重新渲染 https://github.com/siyuan-note/siyuan/issues/7574
                     sourceElements.forEach(item => {
                     sourceElements.forEach(item => {
                         if (item.getAttribute("data-type") === "NodeBlockQueryEmbed") {
                         if (item.getAttribute("data-type") === "NodeBlockQueryEmbed") {