rem:     contentWindow.focus();  window.updateCommands("create"); 
context: function EditorStartup(editorType, editorElement){  contentWindow = window.content;    // store the editor shell in the window, so that child windows can get to it.  editorShell = editorElement.editorShell;    editorShell.Init();  editorShell.SetEditorType(editorType);  editorShell.webShellWindow = window;  editorShell.contentWindow = contentWindow;  // hide UI that we don't have components for  HideInapplicableUIElements();  // set up JS-implemented commands  SetupControllerCommands();    // add a listener to be called when document is really done loading  editorShell.RegisterDocumentStateListener( DocumentStateListener );   // Get url for editor content and load it.  // the editor gets instantiated by the editor shell when the URL has finished loading.  var url = document.getElementById("args").getAttribute("value");  editorShell.LoadUrl(url);    // Set focus to the edit window  // This still doesn't work!  // It works after using a toolbar button, however!  contentWindow.focus();  // call updateCommands to disable while we're loading the page  window.updateCommands("create");}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/003a94051de7438718bb4485d0378ceb723d5221/EditorCommands.js/clean/editor/ui/composer/content/EditorCommands.js