mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
2baa476b51
commit
a6798192ae
2 changed files with 10 additions and 0 deletions
|
|
@ -555,4 +555,8 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
|
|||
wbrElement.remove();
|
||||
}
|
||||
transaction(protyle, doOperation, undoOperation);
|
||||
// 复制容器块中包含折叠标题块
|
||||
protyle.wysiwyg.element.querySelectorAll("[parent-heading]").forEach(item => {
|
||||
item.remove();
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -242,6 +242,9 @@ const promiseTransaction = () => {
|
|||
// blockRender(protyle, item);
|
||||
// }
|
||||
// });
|
||||
protyle.wysiwyg.element.querySelectorAll("[parent-heading]").forEach(item => {
|
||||
item.remove();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -852,6 +855,9 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||
wbrElement.remove();
|
||||
}
|
||||
});
|
||||
protyle.wysiwyg.element.querySelectorAll("[parent-heading]").forEach(item => {
|
||||
item.remove();
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (operation.action === "append") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue