rem: appCore = XPAppCoresManager.Find("EditorAppCoreHTML"); 
add: appCore = XPAppCoresManager.Find(editorName); 
context: function Startup(){  dump("Doing Startup...\n");  toolkitCore = XPAppCoresManager.Find("ToolkitCore");  if (!toolkitCore) {    toolkitCore = new ToolkitCore();    if (toolkitCore)      toolkitCore.Init("ToolkitCore");  }  if(!toolkitCore) {    dump("toolkitCore not found!!! And we can't close the dialog!\n");  }  // NEVER create an appcore here - we must find parent editor's  appCore = XPAppCoresManager.Find("EditorAppCoreHTML");    if(!appCore || !toolkitCore) {    dump("EditorAppCore not found!!!\n");    toolkitCore.CloseWindow(window);  }  dump("EditorAppCore found for Image Properties dialog\n");  // Create dialog object to store controls for easy access  dialog = new Object;  // This is the "combined" widget:  dialog.Src = document.getElementById("image.Src");  // Can we get at just the edit field?  fileChild = dialog.Src.firstChild;  if (fileChild)  {    dump("*** fileInput control has a child\n");  } else {    dump("*** fileInput control has  NO child\n");  }  dialog.AltText = document.getElementById("image.AltText");  if (null == dialog.Src ||       null == dialog.AltText )  {    dump("Not all dialog controls were found!!!\n");  }        initDialog();    dialog.Src.focus();  if (fileChild)    fileChild.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/832c0a7ca1b66cb23e0d897075c61bc908e9297f/EdImageProps.js/clean/editor/ui/dialogs/content/EdImageProps.js