feat(edit): more robust editing experience

This commit is contained in:
tzhangchi
2022-09-08 20:22:26 +08:00
parent 281c3f6c44
commit fed2c8dd90
@@ -90,7 +90,9 @@ export const TextView = ({
await block.removeChildren();
await block.after(nextBlock);
editor.selectionManager.activeNodeByNodeId(nextBlock.id);
setTimeout(() => {
editor.selectionManager.activeNodeByNodeId(nextBlock.id, 'start');
});
return true;
};