rem:   gContentWindow = window._content; 
context: function EditorSharedStartup(){  // set up JS-implemented commands for Text or HTML editing  switch (editorShell.editorType)  {      case "html":      case "htmlmail":        SetupHTMLEditorCommands();        window.gDefaultSaveMimeType = "text/html";        break;      case "text":      case "textmail":        SetupTextEditorCommands();        window.gDefaultSaveMimeType = "text/plain";        break;      default:        dump("INVALID EDITOR TYPE: "+editorShell.editorType+"\n");        SetupTextEditorCommands();        window.gDefaultSaveMimeType = "text/plain";        break;  }  // Just for convenience  gContentWindow = window._content;  gIsWindows = navigator.appVersion.indexOf("Win") != -1;  gIsUNIX = (navigator.appVersion.indexOf("X11") ||             navigator.appVersion.indexOf("nux")) != -1;  gIsMac = !gIsWindows && !gIsUNIX;  //dump("IsWin="+gIsWindows+", IsUNIX="+gIsUNIX+", IsMac="+gIsMac+"\n");  // Set platform-specific hints for how to select cells  // Mac uses "Cmd", all others use "Ctrl"  var tableKey = GetString(gIsMac ? "XulKeyMac" : "TableSelectKey");  var dragStr = tableKey+GetString("Drag");  var clickStr = tableKey+GetString("Click");  var delStr = GetString(gIsMac ? "Clear" : "Del");  SafeSetAttribute("menu_SelectCell", "acceltext", clickStr);  SafeSetAttribute("menu_SelectRow", "acceltext", dragStr);  SafeSetAttribute("menu_SelectColumn", "acceltext", dragStr);  SafeSetAttribute("menu_SelectAllCells", "acceltext", dragStr);  // And add "Del" or "Clear"  SafeSetAttribute("menu_DeleteCellContents", "acceltext", delStr);  // Remove a Privacy menu that causes problems  // (method is in tasksOverlay.js)  // HideImage();  // hide UI that we don't have components for  RemoveInapplicableUIElements();  // Use global prefs if EditorStartup already run,  //   else get service for other editor users  if (!gPrefs) GetPrefsService();  // Use browser colors as initial values for editor's default colors  var BrowserColors = GetDefaultBrowserColors();  if (BrowserColors)  {    gDefaultTextColor = BrowserColors.TextColor;    gDefaultBackgroundColor = BrowserColors.BackgroundColor;  }  // For new window, no default last-picked colors  gColorObj.LastTextColor = "";  gColorObj.LastBackgroundColor = "";}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/5315f300306753d3e6e43aaf0e8ddd650d310502/editor.js/buggy/editor/ui/composer/content/editor.js