This commit is contained in:
parent
ebe952dea8
commit
d2aec48657
1 changed files with 8 additions and 0 deletions
|
@ -382,6 +382,14 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||
item.remove();
|
||||
});
|
||||
});
|
||||
if (protyle.wysiwyg.element.childElementCount === 0) {
|
||||
zoomOut({
|
||||
protyle,
|
||||
id: protyle.block.rootID,
|
||||
isPushBack: false,
|
||||
focusId: operation.id,
|
||||
});
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue