mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-13 02:34:20 +01:00
This commit is contained in:
parent
fe7f53c266
commit
5f37aaf460
1 changed files with 0 additions and 12 deletions
|
|
@ -578,18 +578,6 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: b
|
|||
wbrElement.remove();
|
||||
}
|
||||
});
|
||||
|
||||
// 更新 ws 嵌入块
|
||||
protyle.wysiwyg.element.querySelectorAll(`[data-type="NodeBlockQueryEmbed"][data-node-id="${operation.id}"]`).forEach((item) => {
|
||||
item.removeAttribute("data-render");
|
||||
blockRender(protyle, item);
|
||||
});
|
||||
protyle.wysiwyg.element.querySelectorAll('[data-type="NodeBlockQueryEmbed"]').forEach((item) => {
|
||||
if (item.querySelector(`[data-node-id="${operation.id}"]`)) {
|
||||
item.removeAttribute("data-render");
|
||||
blockRender(protyle, item);
|
||||
}
|
||||
});
|
||||
// 更新 ws 引用块
|
||||
updateRef(protyle, operation.id);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue