- fix: don't lose spellcheck corrections when switching from plain to html editor (and spellchecking is on)

release-0.6
alecpl 16 years ago
parent f9160ecea7
commit 8325940674

@ -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)))

Loading…
Cancel
Save