Added "Default text editor" options (Html forced and Plain forced) (Closes #341)

This commit is contained in:
RainLoop Team 2014-10-30 03:07:48 +04:00
parent 5e8a57f6a3
commit 25c56937f6
29 changed files with 77 additions and 4 deletions

View file

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