From 962085baa17a622c83320e27acde0ac06219da39 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 23 Apr 2009 09:56:14 +0000 Subject: - Fix text wrapping in HTML editor after switching from plain text to HTML (#1485521) --- program/js/editor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'program/js/editor.js') 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 = "
" + composeElement.value + "
"; - composeElement.value = htmlText; + rcmail.plain2html(composeElement.value, textAreaId); tinyMCE.execCommand('mceAddControl', true, textAreaId); if (flagElement && (flag = rcube_find_object(flagElement))) flag.value = '1'; -- cgit v1.2.3