add:  window.spellChecker = spellChecker; 
context: function CheckSpelling(){  var spellChecker = window.editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck);  if (spellChecker)  {    dump("Check Spelling starting...\n");    // Start the spell checker module. Return is first misspelled word    firstMisspelledWord = spellChecker.StartSpellChecking();    dump(firstMisspelledWord+"\n");    if( firstMisspelledWord == "")    {      dump("THERE IS NO MISSPELLED WORD!\n");      // TODO: PUT UP A MESSAGE BOX TO TELL THE USER      window.editorShell.CloseSpellChecking();    } else {      dump("We found a MISSPELLED WORD\n");      window.openDialog("chrome://editordlgs/content/EdSpellCheck.xul", "SpellDlg", "chrome", "", firstMisspelledWord);    }  }  contentWindow.focus();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f85acd993e8835575d09e6f4e3a5600489696848/EditorCommands.js/clean/editor/ui/composer/content/EditorCommands.js