浏览代码

:art: https://github.com/siyuan-note/siyuan/issues/13232

Vanessa 7 月之前
父节点
当前提交
3d5c08e8b1
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/src/protyle/util/insertHTML.ts

+ 4 - 0
app/src/protyle/util/insertHTML.ts

@@ -413,6 +413,10 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
         }
     }
     (insertBefore ? Array.from(tempElement.content.children) : Array.from(tempElement.content.children).reverse()).forEach((item) => {
+        // https://github.com/siyuan-note/siyuan/issues/13232
+        if (item.getAttribute("data-type") === "NodeHeading" && item.getAttribute("fold") === "1") {
+            item.removeAttribute("fold")
+        }
         let addId = item.getAttribute("data-node-id");
         if (addId === id) {
             doOperation.push({