Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

feat: add editor auto focus preference (#2498)

Mahoo Huangf67757f60601
diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsx
index cfce3f59d..768bf4714 100644
--- a/web/src/components/MemoEditor/index.tsx
+++ b/web/src/components/MemoEditor/index.tsx
@@ -75,6 +75,7 @@ const MemoEditor = (props: Props) => {
useEffect(() => {
editorRef.current?.setContent(contentCache || "");
+ handleEditorFocus();
}, []);
useEffect(() => {