fix: spellcheck control for 3rd-party editors (#839)

* fix: spellcheck control for 3rd-party editors

* refactor: spellcheckControllable

* refactor: spellcheckControllable

Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com>
This commit is contained in:
Johnny A
2022-02-01 16:27:28 -04:00
committed by GitHub
parent e104a1768d
commit 528bafde96

View File

@@ -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