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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user