From e8b315573a0010b1fc236bf5843bed59f42e790c Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 9 Apr 2024 18:05:02 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/10953 --- app/src/protyle/wysiwyg/transaction.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index 424d82122..0e7d443c4 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -122,6 +122,9 @@ const promiseTransaction = () => { item.remove(); } }); + if (protyle.disabled) { + disabledProtyle(protyle); + } processRender(protyle.wysiwyg.element); highlightRender(protyle.wysiwyg.element); avRender(protyle.wysiwyg.element, protyle); @@ -402,6 +405,9 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo: } }); if (operation.retData) { + if (protyle.disabled) { + disabledProtyle(protyle); + } processRender(protyle.wysiwyg.element); highlightRender(protyle.wysiwyg.element); avRender(protyle.wysiwyg.element, protyle);