mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
This commit is contained in:
parent
c326989391
commit
fe143bcb12
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue