diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-02 13:59:18 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-02 13:59:18 +0000 |
| commit | f94d2e0ac707df0d5bc452925c6bdba94b799ab5 (patch) | |
| tree | fc47b24938bee97a2851e0bb4874aaf5a0d191e4 /roundcubemail/program | |
| parent | dd55a7ef7a25ca311b752d27f42ecf9323dc1394 (diff) | |
- fix empty body after switching from html to plain
git-svn-id: https://svn.roundcube.net/trunk@3469 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/js/editor.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/js/editor.js b/roundcubemail/program/js/editor.js index 2c86d8ec7..1b1129ecc 100644 --- a/roundcubemail/program/js/editor.js +++ b/roundcubemail/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'; |
