add:   var prefs = gPrefs ? gPrefs : GetPrefsService();   if (gDefaultTextColor == "" || gDefaultBackgroundColor == "") { var useWinColors = false; if (gIsWindows) {   try { useWinColors = prefs.GetBoolPref("browser.display.wfe.use_windows_colors"); } catch (e) {}  }  if (useWinColors) {   } 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) {} }   if (gDefaultTextColor == "") gDefaultTextColor = "#000000"; if (gDefaultBackgroundColor == "") gDefaultBackgroundColor = "#FFFFFF"; } 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();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ad53c5a9b12dc84f1a64abd31b91ad7fc17fff05/editor.js/clean/editor/ui/composer/content/editor.js