Changeset 2250 in subversion


Ignore:
Timestamp:
Jan 22, 2009 6:55:49 AM (4 years ago)
Author:
alec
Message:
  • fix: don't lose spellcheck corrections when switching from plain to html editor (and spellchecking is on)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/js/editor.js

    r2232 r2250  
    7575  if (ishtml) 
    7676    { 
    77     var existingPlainText = composeElement.value; 
    78     var htmlText = "<pre>" + existingPlainText + "</pre>"; 
     77    rcmail.display_spellcheck_controls(false); 
     78    var htmlText = "<pre>" + composeElement.value + "</pre>"; 
    7979 
    80     rcmail.display_spellcheck_controls(false); 
    8180    composeElement.value = htmlText; 
    8281    tinyMCE.execCommand('mceAddControl', true, textAreaId); 
Note: See TracChangeset for help on using the changeset viewer.