summaryrefslogtreecommitdiff
path: root/program/js/editor.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-04-23 09:56:14 +0000
committeralecpl <alec@alec.pl>2009-04-23 09:56:14 +0000
commit962085baa17a622c83320e27acde0ac06219da39 (patch)
treed2abd4987c0f346f6d23b1b32b5e7ef605850af1 /program/js/editor.js
parenteaacbec63100fa8094189273e5c8e56571b0f976 (diff)
- Fix text wrapping in HTML editor after switching from plain text to HTML (#1485521)
Diffstat (limited to 'program/js/editor.js')
-rw-r--r--program/js/editor.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/program/js/editor.js b/program/js/editor.js
index 7f937b2b8..6826af847 100644
--- a/program/js/editor.js
+++ b/program/js/editor.js
@@ -75,9 +75,8 @@ function rcmail_toggle_editor(ishtml, textAreaId, flagElement)
if (ishtml)
{
rcmail.display_spellcheck_controls(false);
- var htmlText = "<pre>" + composeElement.value + "</pre>";
- composeElement.value = htmlText;
+ rcmail.plain2html(composeElement.value, textAreaId);
tinyMCE.execCommand('mceAddControl', true, textAreaId);
if (flagElement && (flag = rcube_find_object(flagElement)))
flag.value = '1';