Vanessa 2024-12-06 09:14:30 +08:00
parent ece3189263
commit 3d5c08e8b1

View file

@ -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({