You've already forked joplin
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:
@@ -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();');
|
||||
|
||||
Reference in New Issue
Block a user