diff --git a/web/src/components/MemoEditor/Editor/index.tsx b/web/src/components/MemoEditor/Editor/index.tsx index 5a6fa4ba78093..25b207b8bc8f1 100644 --- a/web/src/components/MemoEditor/Editor/index.tsx +++ b/web/src/components/MemoEditor/Editor/index.tsx @@ -76,16 +76,22 @@ const Editor = forwardRef(function Editor(props: EditorProps, ref: React.Forward const view = new EditorView({ state: EditorState.create({ doc: initialContent, - extensions: buildEditorExtensions({ - placeholder, - onChange: (md) => { - if (!applyingExternalContentRef.current) onChangeRef.current(md); - }, - onFiles: (files, position) => onFilesRef.current(files, position), - onUpdate: () => listenersRef.current.forEach((l) => l()), - onSubmit: () => onSubmitRef.current(), - getTags: () => tagsRef.current, - }), + extensions: [ + buildEditorExtensions({ + placeholder, + onChange: (md) => { + if (!applyingExternalContentRef.current) onChangeRef.current(md); + }, + onFiles: (files, position) => onFilesRef.current(files, position), + onUpdate: () => listenersRef.current.forEach((l) => l()), + onSubmit: () => onSubmitRef.current(), + getTags: () => tagsRef.current, + }), + EditorView.contentAttributes.of({ + autocorrect: "on", + autocapitalize: "on", + }), + ], }), parent: hostRef.current, });