Преглед на файлове

: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) => {
     (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");
         let addId = item.getAttribute("data-node-id");
         if (addId === id) {
         if (addId === id) {
             doOperation.push({
             doOperation.push({