Mobile: Make the new text editor the default one

This commit is contained in:
Laurent Cozic committed 2023-01-03 19:49:08 +00:00
1 parent ff355b9f4d
commit f5ef318f70
2 files changed
+14 -2

No files matched your search

@@ -1242,7 +1242,7 @@ const NoteScreen = connect((state: any) => {
showSideMenu: state.showSideMenu,
provisionalNoteIds: state.provisionalNoteIds,
highlightedWords: state.highlightedWords,
useEditorBeta: state.settings['editor.beta'],
useEditorBeta: !state.settings['editor.usePlainText'],
};
})(NoteScreenComponent);
+13 -1
View File
@@ -1018,7 +1018,7 @@ class Setting extends BaseModel {
value: false,
type: SettingItemType.Bool,
section: 'note',
public: true,
public: false,
appTypes: [AppType.Mobile],
label: () => 'Opt-in to the editor beta',
description: () => 'This beta adds list continuation and syntax highlighting. If you find bugs, please report them in the Discourse forum.',
@@ -1026,6 +1026,18 @@ class Setting extends BaseModel {
isGlobal: true,
},
'editor.usePlainText': {
value: false,
type: SettingItemType.Bool,
section: 'note',
public: true,
appTypes: [AppType.Mobile],
label: () => 'Use the plain text editor',
description: () => 'The plain text editor has various issues and is no longer supported. If you are having issues with the new editor however you can revert to the old one using this setting.',
storage: SettingStorage.File,
isGlobal: true,
},
// Enables/disables spellcheck in the mobile markdown beta editor.
'editor.mobile.spellcheckEnabled': {
value: true,