From a3822931d67db04857cea17de722e9203bea9ce0 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 5 Dec 2023 20:06:36 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=BD=9C=E5=85=A5=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/wysiwyg/transaction.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index 08fe9bb36..2123eec97 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -461,6 +461,11 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo: updateBlock(updateElements, protyle, operation, isUndo); } }); + } else { // updateElements 没有包含潜入块,在悬浮层编辑潜入块时,潜入块也需要更新 + // 更新 ws 嵌入块 + updateEmbed(protyle, operation); + // 更新 ws 引用块 + updateRef(protyle, operation.id); } return; }