mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-19 02:51:47 +08:00
feat(edit): more robust editing experience
This commit is contained in:
@@ -90,7 +90,9 @@ export const TextView = ({
|
|||||||
await block.removeChildren();
|
await block.removeChildren();
|
||||||
await block.after(nextBlock);
|
await block.after(nextBlock);
|
||||||
|
|
||||||
editor.selectionManager.activeNodeByNodeId(nextBlock.id);
|
setTimeout(() => {
|
||||||
|
editor.selectionManager.activeNodeByNodeId(nextBlock.id, 'start');
|
||||||
|
});
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user