alecpl
2011-05-31 340546c975bca94526a3e16039895a6d0600828b
program/js/app.js
@@ -3018,6 +3018,24 @@
    }
  };
  // resume spellchecking, highlight provided mispellings without new ajax request
  this.spellcheck_resume = function(ishtml, data)
  {
    if (ishtml) {
      var ed = tinyMCE.get(this.env.composebody);
        sp = ed.plugins.spellchecker;
      sp.active = 1;
      sp._markWords(data);
      ed.nodeChanged();
    }
    else {
      var sp = this.env.spellcheck;
      sp.prepare(false, true);
      sp.processData(data);
    }
  }
  this.set_draft_id = function(id)
  {
    $("input[name='_draft_saveid']").val(id);