mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 19:19:21 +03:00
Drop mail composer HTML/Plain Forced to prevent confusions like in #355
This commit is contained in:
parent
bde9835d5d
commit
435b590b3e
41 changed files with 9 additions and 90 deletions
|
|
@ -105,9 +105,7 @@ export const MessagePriority = {
|
|||
*/
|
||||
export const EditorDefaultType = {
|
||||
Html: 'Html',
|
||||
Plain: 'Plain',
|
||||
HtmlForced: 'HtmlForced',
|
||||
PlainForced: 'PlainForced'
|
||||
Plain: 'Plain'
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -72,9 +72,7 @@ export class UserSettingsGeneral extends AbstractViewSettings {
|
|||
translatorTrigger();
|
||||
return [
|
||||
{ id: EditorDefaultType.Html, name: i18n('SETTINGS_GENERAL/LABEL_EDITOR_HTML') },
|
||||
{ id: EditorDefaultType.Plain, name: i18n('SETTINGS_GENERAL/LABEL_EDITOR_PLAIN') },
|
||||
{ id: EditorDefaultType.HtmlForced, name: i18n('SETTINGS_GENERAL/LABEL_EDITOR_HTML_FORCED') },
|
||||
{ id: EditorDefaultType.PlainForced, name: i18n('SETTINGS_GENERAL/LABEL_EDITOR_PLAIN_FORCED') }
|
||||
{ id: EditorDefaultType.Plain, name: i18n('SETTINGS_GENERAL/LABEL_EDITOR_PLAIN') }
|
||||
];
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -18,9 +18,7 @@ export const SettingsUserStore = new class {
|
|||
self.editorDefaultType = ko.observable('Html').extend({
|
||||
limitedList: [
|
||||
EditorDefaultType.Html,
|
||||
EditorDefaultType.Plain,
|
||||
EditorDefaultType.HtmlForced,
|
||||
EditorDefaultType.PlainForced
|
||||
EditorDefaultType.Plain
|
||||
]
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,3 @@ Secondly, we can't rely on MUA's what to do with :empty
|
|||
.rl-mobile #V-PopupsCompose {
|
||||
min-height: calc(100% - 12px);
|
||||
}
|
||||
|
||||
#V-PopupsCompose[data-wysiwyg*=Forced] #squire-toolgroup-mode {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ const
|
|||
|
||||
isPlainEditor = () => {
|
||||
let type = SettingsUserStore.editorDefaultType();
|
||||
return EditorDefaultType.Html !== type && EditorDefaultType.HtmlForced !== type;
|
||||
return EditorDefaultType.Html !== type;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
@ -1079,8 +1079,8 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
encrypted || editor.setHtml(sText);
|
||||
|
||||
if (encrypted
|
||||
|| EditorDefaultType.PlainForced === SettingsUserStore.editorDefaultType()
|
||||
|| (!message.isHtml() && EditorDefaultType.HtmlForced !== SettingsUserStore.editorDefaultType())
|
||||
|| EditorDefaultType.Plain === SettingsUserStore.editorDefaultType()
|
||||
|| !message.isHtml()
|
||||
) {
|
||||
editor.modePlain();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue