rem: editorShell.contentsMIMEType = "text/plain"; 
add: editorShell.contentsMIMEType = kTextMimeType; 
context: function EditorSharedStartup(){  // Just for convenience  gContentWindow = window._content;  switch (editorShell.editorType)  {      case "html":      case "htmlmail":        gIsHTMLEditor = true;        break;      case "text":      case "textmail":        gIsHTMLEditor = false;        break;      default:        dump("INVALID EDITOR TYPE: " + editorShell.editorType + "\n");        gIsHTMLEditor = false;        break;  }  // Set up the mime type and register the commands.  // We don't have an editor yet -- in fact, this is the listener which  // will tell us when it's time to create the editor.  // So we can't use gEditor.AddDocumentStateListener here.  if (gIsHTMLEditor)  {    editorShell.contentsMIMEType = "text/html";    SetupHTMLEditorCommands();  }  else  {    editorShell.contentsMIMEType = "text/plain";    SetupTextEditorCommands();  }  // add a listener to be called when document is really done loading  if (editorShell.editorType == "htmlmail"      || editorShell.editorType == "textmail")    editorShell.RegisterDocumentStateListener( MessageComposeDocumentStateListener );  else    editorShell.RegisterDocumentStateListener( DocumentStateListener );  var isMac = (GetOS() == gMac);  // Set platform-specific hints for how to select cells  // Mac uses "Cmd", all others use "Ctrl"  var tableKey = GetString(isMac ? "XulKeyMac" : "TableSelectKey");  var dragStr = tableKey+GetString("Drag");  var clickStr = tableKey+GetString("Click");  var delStr = GetString(isMac ? "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);  // Set text for indent, outdent keybinding  // hide UI that we don't have components for  RemoveInapplicableUIElements();  gPrefs = GetPrefs();  // 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 = "";  gColorObj.LastHighlightColor = "";}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/22d098a7174f48153b74dd770b2e40ab6f898f16/editor.js/buggy/editor/ui/composer/content/editor.js