1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Mobile: Setting to disable spellcheck in beta editor (#6780)

This commit is contained in:
Henry Heino
2022-08-27 05:53:46 -07:00
committed by GitHub
parent 40e682faae
commit ae300de42f
5 changed files with 17 additions and 11 deletions

View File

@ -304,7 +304,7 @@ export function initCodeMirror(
EditorView.lineWrapping,
EditorView.contentAttributes.of({
autocapitalize: 'sentence',
spellcheck: 'true',
spellcheck: settings.spellcheckEnabled ? 'true' : 'false',
}),
EditorView.updateListener.of((viewUpdate: ViewUpdate) => {
notifyDocChanged(viewUpdate);
@ -384,10 +384,6 @@ export function initCodeMirror(
closeSearchPanel(editor);
}
},
setSpellcheckEnabled: (enabled: boolean) => {
editor.contentDOM.spellcheck = enabled;
notifySelectionFormattingChange();
},
// Formatting
toggleBolded: () => { toggleBolded(editor); },