From 832594067415e664d5c562ffd31784bde491b682 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 22 Jan 2009 11:55:49 +0000 Subject: - fix: don't lose spellcheck corrections when switching from plain to html editor (and spellchecking is on) --- program/js/editor.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'program/js') diff --git a/program/js/editor.js b/program/js/editor.js index 624509085..6b847ba00 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -74,10 +74,9 @@ function rcmail_toggle_editor(ishtml, textAreaId, flagElement) if (ishtml) { - var existingPlainText = composeElement.value; - var htmlText = "
" + existingPlainText + "
"; - rcmail.display_spellcheck_controls(false); + var htmlText = "
" + composeElement.value + "
"; + composeElement.value = htmlText; tinyMCE.execCommand('mceAddControl', true, textAreaId); if (flagElement && (flag = rcube_find_object(flagElement))) -- cgit v1.2.3