Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat(edit): more robust editing experience

tzhangchifed2c8dd903d
diff --git a/libs/components/editor-blocks/src/blocks/text/TextView.tsx b/libs/components/editor-blocks/src/blocks/text/TextView.tsx
index baae481c91..094d05f755 100644
--- a/libs/components/editor-blocks/src/blocks/text/TextView.tsx
+++ b/libs/components/editor-blocks/src/blocks/text/TextView.tsx
@@ -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;
};