alecpl
2009-01-22 832594067415e664d5c562ffd31784bde491b682
- fix: don't lose spellcheck corrections when switching from plain to html editor (and spellchecking is on)


1 files modified
5 ■■■■■ changed files
program/js/editor.js 5 ●●●●● patch | view | raw | blame | history
program/js/editor.js
@@ -74,10 +74,9 @@
  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)))