Browse Source

:art: 删除块,嵌入块中没有同步删除

Vanessa 7 months ago
parent
commit
cc033c115d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/protyle/wysiwyg/transaction.ts

+ 1 - 1
app/src/protyle/wysiwyg/transaction.ts

@@ -418,7 +418,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
         return;
     }
     if (operation.action === "delete") {
-        if (updateElements.length > 0) {
+        if (updateElements.length > 0 || !isUndo) {
             deleteBlock(updateElements, operation.id, protyle, isUndo);
         } else if (isUndo) {
             zoomOut({