Unverified Commit f67757f6 authored by Mahoo Huang's avatar Mahoo Huang Committed by GitHub

feat: add editor auto focus preference (#2498)

* feat: add editor auto focus perference

* feat: set editor auto focus
parent 38f05fd6
...@@ -75,6 +75,7 @@ const MemoEditor = (props: Props) => { ...@@ -75,6 +75,7 @@ const MemoEditor = (props: Props) => {
useEffect(() => { useEffect(() => {
editorRef.current?.setContent(contentCache || ""); editorRef.current?.setContent(contentCache || "");
handleEditorFocus();
}, []); }, []);
useEffect(() => { useEffect(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment