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 }) => {
|
}> = ({ appState, note }) => {
|
||||||
const editor = appState.application.componentManager.editorForNote(note);
|
const editor = appState.application.componentManager.editorForNote(note);
|
||||||
const spellcheckControllable = Boolean(
|
const spellcheckControllable = Boolean(
|
||||||
!editor ||
|
!editor || editor.package_info.spellcheckControl
|
||||||
appState.application.getFeature(editor.identifier)?.spellcheckControl
|
|
||||||
);
|
);
|
||||||
const noteSpellcheck = !spellcheckControllable
|
const noteSpellcheck = !spellcheckControllable
|
||||||
? true
|
? true
|
||||||
|
|||||||
Reference in New Issue
Block a user