mirror of
https://github.com/usememos/memos.git
synced 2024-12-27 23:51:57 +08:00
feat: add editor auto focus preference (#2498)
* feat: add editor auto focus perference * feat: set editor auto focus
This commit is contained in:
parent
38f05fd6f2
commit
f67757f606
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ const MemoEditor = (props: Props) => {
|
|||
|
||||
useEffect(() => {
|
||||
editorRef.current?.setContent(contentCache || "");
|
||||
handleEditorFocus();
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Reference in a new issue