mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 13:28:48 +01:00
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
Add a link
Reference in a new issue