summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-04-02 13:59:18 +0000
committeralecpl <alec@alec.pl>2010-04-02 13:59:18 +0000
commit3616845126d91e6bf5bf9f1c28ce73a3da6e1976 (patch)
tree0379614e977b153d13f0e85fe5839be2cf4db259 /program/js
parent751b22b41f960971b966341a386dbf1fd8e2629a (diff)
- fix empty body after switching from html to plain
Diffstat (limited to 'program/js')
-rw-r--r--program/js/editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/js/editor.js b/program/js/editor.js
index 2c86d8ec7..1b1129ecc 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -100,7 +100,7 @@ function rcmail_toggle_editor(select, textAreaId, flagElement)
rcmail.display_spellcheck_controls(false);
rcmail.plain2html(composeElement.value, textAreaId);
- tinyMCE.execCommand('mceToggleEditor', false, textAreaId);
+ tinyMCE.execCommand('mceAddControl', false, textAreaId);
// #1486593
setTimeout("rcmail_editor_tabindex();", 500);
if (flagElement && (flag = rcube_find_object(flagElement)))
@@ -121,7 +121,7 @@ function rcmail_toggle_editor(select, textAreaId, flagElement)
rcmail.html2plain(existingHtml, textAreaId);
}
- tinyMCE.execCommand('mceToggleEditor', false, textAreaId);
+ tinyMCE.execCommand('mceRemoveControl', false, textAreaId);
rcmail.display_spellcheck_controls(true);
if (flagElement && (flag = rcube_find_object(flagElement)))
flag.value = '0';