Browse Source

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

Vanessa 7 tháng trước cách đây
mục cha
commit
cc033c115d

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

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