feat: add editor auto focus preference (#2498)

* feat: add editor auto focus perference

* feat: set editor auto focus
This commit is contained in:
Mahoo Huang 2023-11-13 13:51:52 +08:00 committed by GitHub
parent 38f05fd6f2
commit f67757f606
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,6 +75,7 @@ const MemoEditor = (props: Props) => {
useEffect(() => {
editorRef.current?.setContent(contentCache || "");
handleEditorFocus();
}, []);
useEffect(() => {