Skip to content

Commit

Permalink
fix: spellcheck control for 3rd-party editors (#839)
Browse files Browse the repository at this point in the history
* fix: spellcheck control for 3rd-party editors

* refactor: spellcheckControllable

* refactor: spellcheckControllable

Co-authored-by: Johnny Almonte <[email protected]>
  • Loading branch information
johnny243 and johnny243 authored Feb 1, 2022
1 parent e104a17 commit 528bafd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 528bafd

Please sign in to comment.