From 528bafde96b5bff6c50be8f8b56c764149b1c079 Mon Sep 17 00:00:00 2001 From: Johnny A <5891646+johnny243@users.noreply.github.com> Date: Tue, 1 Feb 2022 16:27:28 -0400 Subject: [PATCH] fix: spellcheck control for 3rd-party editors (#839) * fix: spellcheck control for 3rd-party editors * refactor: spellcheckControllable * refactor: spellcheckControllable Co-authored-by: Johnny Almonte --- .../javascripts/components/NotesOptions/NotesOptions.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/components/NotesOptions/NotesOptions.tsx b/app/assets/javascripts/components/NotesOptions/NotesOptions.tsx index 67b85ade949..c0d2467d1bd 100644 --- a/app/assets/javascripts/components/NotesOptions/NotesOptions.tsx +++ b/app/assets/javascripts/components/NotesOptions/NotesOptions.tsx @@ -149,8 +149,7 @@ const SpellcheckOptions: FunctionComponent<{ }> = ({ appState, note }) => { const editor = appState.application.componentManager.editorForNote(note); const spellcheckControllable = Boolean( - !editor || - appState.application.getFeature(editor.identifier)?.spellcheckControl + !editor || editor.package_info.spellcheckControl ); const noteSpellcheck = !spellcheckControllable ? true