mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +03:00
Added "Default text editor" options (Html forced and Plain forced) (Closes #341)
This commit is contained in:
parent
5e8a57f6a3
commit
25c56937f6
29 changed files with 77 additions and 4 deletions
|
|
@ -921,7 +921,8 @@
|
|||
|
||||
this.editor(function (oEditor) {
|
||||
oEditor.setHtml(sText, false);
|
||||
if (!oMessage.isHtml())
|
||||
if (Enums.EditorDefaultType.PlainForce === Data.editorDefaultType() ||
|
||||
(!oMessage.isHtml() && Enums.EditorDefaultType.HtmlForce !== Data.editorDefaultType()))
|
||||
{
|
||||
oEditor.modeToggle(false);
|
||||
}
|
||||
|
|
@ -940,7 +941,8 @@
|
|||
|
||||
this.editor(function (oEditor) {
|
||||
oEditor.setHtml(sText, false);
|
||||
if (Enums.EditorDefaultType.Html !== Data.editorDefaultType())
|
||||
if (Enums.EditorDefaultType.Html !== Data.editorDefaultType() &&
|
||||
Enums.EditorDefaultType.HtmlForce !== Data.editorDefaultType())
|
||||
{
|
||||
oEditor.modeToggle(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue