From 5f37aaf4607c30590a70a7851449b4029c881331 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 10 Oct 2022 23:20:15 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6138 --- app/src/protyle/wysiwyg/transaction.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index e07d87b71..94d45b961 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -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;