From 32ca1f9fc8a78e092565b51cc97faa724bb4e6cf Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Sat, 30 May 2009 05:09:57 -0400 Subject: [PATCH] - css fixes (#1485869) --- program/js/editor.js | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/program/js/editor.js b/program/js/editor.js index 6245090..6826af8 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -52,8 +52,8 @@ spellchecker_languages : (rcmail.env.spellcheck_langs ? rcmail.env.spellcheck_langs : 'Dansk=da,Deutsch=de,+English=en,Espanol=es,Francais=fr,Italiano=it,Nederlands=nl,Polski=pl,Portugues=pt,Suomi=fi,Svenska=sv'), gecko_spellcheck : true, relative_urls : false, - remove_script_host : false , - rc_client: rcube_webmail_client, + remove_script_host : false, + rc_client: rcmail, oninit : 'rcmail_editor_callback' }); } @@ -74,11 +74,9 @@ if (ishtml) { - var existingPlainText = composeElement.value; - var htmlText = "<pre>" + existingPlainText + "</pre>"; - rcmail.display_spellcheck_controls(false); - composeElement.value = htmlText; + + rcmail.plain2html(composeElement.value, textAreaId); tinyMCE.execCommand('mceAddControl', true, textAreaId); if (flagElement && (flag = rcube_find_object(flagElement))) flag.value = '1'; -- Gitblit v1.9.1