mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-28 09:54:07 +01:00
This commit is contained in:
parent
0fbf1c4ed3
commit
bd21522b33
1 changed files with 1 additions and 1 deletions
|
|
@ -1066,7 +1066,7 @@ const removeUnfoldRepeatBlock = (html: string, protyle: IProtyle) => {
|
|||
const temp = document.createElement("template");
|
||||
temp.innerHTML = html;
|
||||
Array.from(temp.content.children).forEach(item => {
|
||||
protyle.wysiwyg.element.querySelector(`:scope > [data-node-id="${item.getAttribute("data-node-id")}"]`)?.remove();
|
||||
protyle.wysiwyg.element.querySelector(`[data-node-id="${item.getAttribute("data-node-id")}"]`)?.remove();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue