Vanessa 2025-09-07 09:59:35 +08:00
parent c326989391
commit fe143bcb12

View file

@ -1796,7 +1796,10 @@ export class WYSIWYG {
const topElement = getTopAloneElement(item); const topElement = getTopAloneElement(item);
if (item.getAttribute("data-type") === "NodeHeading" && item.getAttribute("fold") === "1") { if (item.getAttribute("data-type") === "NodeHeading" && item.getAttribute("fold") === "1") {
needClipboardWrite = true; needClipboardWrite = true;
const response = await fetchSyncPost("/api/block/getHeadingChildrenDOM", {id: item.getAttribute("data-node-id")}); const response = await fetchSyncPost("/api/block/getHeadingChildrenDOM", {
id: item.getAttribute("data-node-id"),
removeFoldAttr: false
});
html += response.data; html += response.data;
} else { } else {
html += removeEmbed(topElement); html += removeEmbed(topElement);