mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +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();
|
wbrElement.remove();
|
||||||
}
|
}
|
||||||
transaction(protyle, doOperation, undoOperation);
|
transaction(protyle, doOperation, undoOperation);
|
||||||
|
// 复制容器块中包含折叠标题块
|
||||||
|
protyle.wysiwyg.element.querySelectorAll("[parent-heading]").forEach(item => {
|
||||||
|
item.remove();
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -242,6 +242,9 @@ const promiseTransaction = () => {
|
||||||
// blockRender(protyle, item);
|
// 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();
|
wbrElement.remove();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
protyle.wysiwyg.element.querySelectorAll("[parent-heading]").forEach(item => {
|
||||||
|
item.remove();
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (operation.action === "append") {
|
if (operation.action === "append") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue