From b81c0b5e0e997f67c4303a7ffb4a4d954384dc1f Mon Sep 17 00:00:00 2001 From: Sinclair Chen Date: Fri, 7 Oct 2022 18:14:07 -0700 Subject: [PATCH] Fix freezing when typing big docs --- web/components/editor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/editor.tsx b/web/components/editor.tsx index f84e62e2..813d492f 100644 --- a/web/components/editor.tsx +++ b/web/components/editor.tsx @@ -83,11 +83,11 @@ export function useTextEditor(props: { !simple && 'min-h-[6em]', 'outline-none pt-2 px-4', 'prose-img:select-auto', - '[&_.ProseMirror-selectednode]:outline-dotted [&_*]:outline-indigo-300' // selected img, emebeds + '[&_.ProseMirror-selectednode]:outline-dotted [&_*]:outline-indigo-300' // selected img, embeds ) const editor = useEditor({ - editorProps: { attributes: { class: editorClass } }, + editorProps: { attributes: { class: editorClass, spellcheck: 'false' } }, extensions: [ StarterKit.configure({ heading: simple ? false : { levels: [1, 2, 3] },