mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-05 23:21:47 +01:00
This commit is contained in:
parent
fc1cbf46aa
commit
4e4398ef47
3 changed files with 31 additions and 10 deletions
|
|
@ -463,10 +463,13 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
|
|||
foldHeadingId = item.getAttribute("data-node-id");
|
||||
return true;
|
||||
}
|
||||
if (foldHeadingId && item.getAttribute("parent-heading") === foldHeadingId) {
|
||||
if (foldHeadingId && item.getAttribute("parent-heading")) {
|
||||
foldHTML += item.outerHTML;
|
||||
}
|
||||
});
|
||||
if (foldHeadingId && foldHTML) {
|
||||
fetchPost("/api/block/appendHeadingChildren", {id: foldHeadingId, dom: foldHTML});
|
||||
}
|
||||
(insertBefore ? Array.from(tempElement.content.children) : Array.from(tempElement.content.children).reverse()).find((item) => {
|
||||
if (item.getAttribute("parent-heading")) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue