diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-04-23 09:56:14 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-04-23 09:56:14 +0000 |
| commit | 14190c2d174d68ddcb0063817fcc21dc2fa1fc47 (patch) | |
| tree | ac5e4b4f3c75cf4de8cf6cf22a95c801aa3b8fc9 /roundcubemail/program/js/editor.js | |
| parent | a5f42d416edd1eefe23e9738d4a8a0cafa834100 (diff) | |
- Fix text wrapping in HTML editor after switching from plain text to HTML (#1485521)
git-svn-id: https://svn.roundcube.net/trunk@2417 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/editor.js')
| -rw-r--r-- | roundcubemail/program/js/editor.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/roundcubemail/program/js/editor.js b/roundcubemail/program/js/editor.js index 7f937b2b8..6826af847 100644 --- a/roundcubemail/program/js/editor.js +++ b/roundcubemail/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'; |
