Vanessa 2024-09-09 23:40:32 +08:00
parent ebe952dea8
commit d2aec48657

View file

@ -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;
}