Mobile: Make the new text editor the default one

pull/7575/head
Laurent Cozic 2023-01-03 19:48:33 +00:00
parent ff355b9f4d
commit f5ef318f70
2 changed files with 14 additions and 2 deletions

View File

@ -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);

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,