rem: dump(" *** EditorSharedStartup: gDefaultTextColor="+gDefaultTextColor+", gDefaultBackgroundColor="+gDefaultBackgroundColor+"\n"); 
context: function EditorSharedStartup(){  // set up JS-implemented commands for HTML editing  SetupHTMLEditorCommands();  // 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 exists, else get service for other editor users  var prefs = gPrefs ? gPrefs : GetPrefsService();  // If not set before, set text and background colors from browser prefs  if (gDefaultTextColor == "" || gDefaultBackgroundColor == "")  {    var useWinColors = false;    if (gIsWindows)    {      // What a pain! In Windows, there's a pref to use system colors      //   instead of pref colors      try { useWinColors = prefs.GetBoolPref("browser.display.wfe.use_windows_colors"); } catch (e) {}      // dump("Using Windows colors = "+useWinColors+"\n");    }    if (useWinColors)    {      // TODO: Get system text and windows colors HOW!      // Alternative: Can we get the actual text and background colors used by layout?    }    else    {      if (gDefaultTextColor == "")        try { gDefaultTextColor = prefs.CopyCharPref("browser.display.foreground_color"); } catch (e) {}      if (gDefaultBackgroundColor == "")        try { gDefaultBackgroundColor = prefs.CopyCharPref("browser.display.background_color"); } catch (e) {}    }    // Last resort is to assume black for text, white for background    if (gDefaultTextColor == "")      gDefaultTextColor = "#000000";    if (gDefaultBackgroundColor == "")      gDefaultBackgroundColor = "#FFFFFF";  }dump(" *** EditorSharedStartup: gDefaultTextColor="+gDefaultTextColor+", gDefaultBackgroundColor="+gDefaultBackgroundColor+"\n");}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/5986ab59396a3071965154ed4499fa5a734750cd/editor.js/clean/editor/ui/composer/content/editor.js