mirror of
https://github.com/standardnotes/app
synced 2026-10-20 12:03:13 -04:00
fix: spellcheck control for 3rd-party editors (#839)
* fix: spellcheck control for 3rd-party editors * refactor: spellcheckControllable * refactor: spellcheckControllable Co-authored-by: Johnny Almonte <[email protected]>
This commit is contained in:
co-authored by
Johnny Almonte
parent
e104a1768d
commit
528bafde96
@@ -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