1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +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

@@ -117,7 +117,8 @@ function NoteEditor(props: Props, ref: any) {
const editorSettings: EditorSettings = {
themeId: props.themeId,
themeData: editorTheme(props.themeId),
katexEnabled: Setting.value('markdown.plugin.katex') as boolean,
katexEnabled: Setting.value('markdown.plugin.katex'),
spellcheckEnabled: Setting.value('editor.mobile.spellcheckEnabled'),
};
const injectedJavaScript = `
@@ -247,9 +248,6 @@ function NoteEditor(props: Props, ref: any) {
hideKeyboard() {
injectJS('document.activeElement?.blur();');
},
setSpellcheckEnabled(enabled: boolean) {
injectJS(`cm.setSpellcheckEnabled(${enabled ? 'true' : 'false'});`);
},
searchControl: {
findNext() {
injectJS('cm.searchControl.findNext();');