rem: window.openDialog("chrome: "chrome,close,titlebar,modal", "", editorShell.GetString("NoMisspelledWord"), editorShell.GetString("CheckSpelling"));  spellChecker.CloseSpellChecking(); 
add: editorShell.Alert(editorShell.GetString("CheckSpelling"), editorShell.GetString("NoMisspelledWord")); 
context: function CheckSpelling(){  var spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck);  if (spellChecker)  {    dump("Check Spelling starting...\n");    // Start the spell checker module. Return is first misspelled word    try {      firstMisspelledWord = spellChecker.StartSpellChecking();      dump(firstMisspelledWord+"\n");      if( firstMisspelledWord == "")      {        // No misspelled word - tell user        window.openDialog("chrome://editor/content/EdMessage.xul", "_blank",                           "chrome,close,titlebar,modal", "",                          editorShell.GetString("NoMisspelledWord"),                           editorShell.GetString("CheckSpelling"));              spellChecker.CloseSpellChecking();      } else {        dump("We found a MISSPELLED WORD\n");        // Set spellChecker variable on window        window.spellChecker = spellChecker;        window.openDialog("chrome://editor/content/EdSpellCheck.xul", "_blank", "chrome,close,titlebar,modal", "", firstMisspelledWord);      }    }    catch(ex) {       dump("*** Exception error from Spell Checker\n");    }  }  contentWindow.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0bbcf3b03721509c7074e339bdc9a9942e8b1357/EditorCommands.js/buggy/editor/ui/composer/content/EditorCommands.js