rem:  core = XPAppCoresManager.Find("toolkitCore"); if ( !core ) { core = new ToolkitCore(); if ( core ) { core.Init("toolkitCore"); } } if ( core ) { core.ShowWindowWithArgs( "chrome: } else { dump("Error; can't create toolkitCore\n"); } 
add: window.openDialog( "chrome: "_blank", "chrome,dialog=no,all", "chrome: 
context: function EditorNewPlaintext(){  dump("In EditorNewPlaintext..\n");   core = XPAppCoresManager.Find("toolkitCore");  if ( !core ) {    core = new ToolkitCore();    if ( core ) {      core.Init("toolkitCore");    }  }  if ( core ) {    core.ShowWindowWithArgs( "chrome://editor/content/TextEditorAppShell.xul", window, "chrome://editor/content/EditorInitPagePlain.html" );  } else {    dump("Error; can't create toolkitCore\n");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5070cdf089cc0ccde2fc8063252a1221877a9e68/EditorCommands.js/buggy/editor/ui/composer/content/EditorCommands.js