add: contentWindow = window.frames[0]; 
context: function EditorStartup(editorType){  dump("Doing Startup...\n");  /* Get the global Editor AppCore and the XPFE toolkit core into globals here */  appCore = XPAppCoresManager.Find(editorName);    dump("Looking up EditorAppCore...\n");  if (appCore == null)  {    dump("Creating EditorAppCore...\n");    appCore = new EditorAppCore();    if (appCore) {      dump(editorName + " has been created.\n");      appCore.Init(editorName);      appCore.setWebShellWindow(window);      appCore.setToolbarWindow(window)      appCore.setEditorType(editorType);      appCore.setContentWindow( window.frames[0] );      // Get url for editor content      var url = document.getElementById("args").getAttribute("value");      // Load the source (the app core will magically know what to do).      appCore.loadUrl(url);      // the editor gets instantiated by the appcore when the URL has finished loading.      dump("EditorAppCore windows have been set.\n");    }  } else {    dump("EditorAppCore has already been created! Why?\n");  }  EditorSetup(editorName, appCore);  // Set focus to the edit window  window.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/351d18f8fab2b14cc9f3fa977da6c5abf1878cb9/EditorCommands.js/clean/editor/ui/composer/content/EditorCommands.js