mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-28 18:00:15 +01:00
This commit is contained in:
parent
5a9bb84641
commit
a635bcbafd
15 changed files with 63 additions and 64 deletions
|
|
@ -233,12 +233,12 @@ const setHTML = (options: {
|
|||
protyle.block.id = protyle.block.rootID;
|
||||
protyle.wysiwyg.element.setAttribute("data-doc-type", "NodeDocument");
|
||||
}
|
||||
if (protyle.options.defId) {
|
||||
protyle.wysiwyg.element.querySelectorAll(`[data-id="${protyle.options.defId}"]`).forEach(item => {
|
||||
protyle.options.defIds?.forEach(item => {
|
||||
protyle.wysiwyg.element.querySelectorAll(`[data-id="${item}"]`).forEach(item => {
|
||||
item.classList.add("def--mark");
|
||||
});
|
||||
protyle.options.defId = undefined;
|
||||
}
|
||||
});
|
||||
protyle.options.defIds = [];
|
||||
if (options.action.includes(Constants.CB_GET_APPEND) || options.action.includes(Constants.CB_GET_BEFORE)) {
|
||||
protyle.app.plugins.forEach(item => {
|
||||
item.eventBus.emit("loaded-protyle-dynamic", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue