summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-01-22 11:55:49 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-01-22 11:55:49 +0000
commitb4c68923dc14d614e9b33de94d8853c2ebc5c128 (patch)
tree06a2b3b903215b5c5c6c03809190076877931b7c /roundcubemail/program
parent8ef344232e15123d0c03edaa1923311e2cdabb94 (diff)
- fix: don't lose spellcheck corrections when switching from plain to html editor (and spellchecking is on)
git-svn-id: https://svn.roundcube.net/trunk@2250 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/editor.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/roundcubemail/program/js/editor.js b/roundcubemail/program/js/editor.js
index 624509085..6b847ba00 100644
--- a/roundcubemail/program/js/editor.js
+++ b/roundcubemail/program/js/editor.js
@@ -74,10 +74,9 @@ function rcmail_toggle_editor(ishtml, textAreaId, flagElement)
if (ishtml)
{
- var existingPlainText = composeElement.value;
- var htmlText = "<pre>" + existingPlainText + "</pre>";
-
rcmail.display_spellcheck_controls(false);
+ var htmlText = "<pre>" + composeElement.value + "</pre>";
+
composeElement.value = htmlText;
tinyMCE.execCommand('mceAddControl', true, textAreaId);
if (flagElement && (flag = rcube_find_object(flagElement)))