mirror of
https://github.com/usememos/memos.git
synced 2024-12-29 08:33:50 +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(() => {
|
useEffect(() => {
|
||||||
editorRef.current?.setContent(contentCache || "");
|
editorRef.current?.setContent(contentCache || "");
|
||||||
|
handleEditorFocus();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in a new issue