浏览代码

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

Vanessa 1 年之前
父节点
当前提交
b351c39514
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/src/protyle/wysiwyg/remove.ts

+ 2 - 1
app/src/protyle/wysiwyg/remove.ts

@@ -239,7 +239,8 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran
         return;
     }
 
-    if (blockElement.parentElement.classList.contains("li") && blockElement.previousElementSibling.classList.contains("protyle-action")) {
+    if (blockElement.parentElement.classList.contains("li") && blockElement.getAttribute("data-type") !== "NodeHeading" &&
+        blockElement.previousElementSibling.classList.contains("protyle-action")) {
         removeLi(protyle, blockElement, range, type === "Delete");
         return;
     }