rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
args.time = gEndTime;
args.time = gEndTime.getInTimezone(gEndTimezone);
function editEndTimezone(){ var tzStart = document.getElementById("timezone-endtime"); if(tzStart.hasAttribute("disabled")) return; var args = new Object(); args.time = gEndTime; args.onOk = function(datetime) { var equalTimezones = false; if(gStartTime && gEndTime) { if(gStartTime.timezone == gE...
if(gStartTime && gEndTime) { if(gStartTime.timezone == gEndTime.timezone) {
if(gStartTimezone && gEndTimezone) { if(gStartTimezone == gEndTimezone) {
function editEndTimezone(){ var tzStart = document.getElementById("timezone-endtime"); if(tzStart.hasAttribute("disabled")) return; var args = new Object(); args.time = gEndTime; args.onOk = function(datetime) { var equalTimezones = false; if(gStartTime && gEndTime) { if(gStartTime.timezone == gE...
gStartTime = gStartTime.getInTimezone(datetime.timezone); gEndTime = datetime;
gStartTimezone = datetime.timezone; gEndTimezone = datetime.timezone;
function editEndTimezone(){ var tzStart = document.getElementById("timezone-endtime"); if(tzStart.hasAttribute("disabled")) return; var args = new Object(); args.time = gEndTime; args.onOk = function(datetime) { var equalTimezones = false; if(gStartTime && gEndTime) { if(gStartTime.timezone == gE...
function editEvent( calendarEvent )
function editEvent()
function editEvent( calendarEvent ){ openEventDialog(calendarEvent, "edit", self.modifyEventDialogResponse, null);}
openEventDialog(calendarEvent, "edit", self.modifyEventDialogResponse, null);
if( gCalendarWindow.EventSelection.selectedEvents.length == 1 ) { var calendarEvent = gCalendarWindow.EventSelection.selectedEvents[0]; if( calendarEvent != null ) { modifyEventWithDialog(calendarEvent); } }
function editEvent( calendarEvent ){ openEventDialog(calendarEvent, "edit", self.modifyEventDialogResponse, null);}
function editEvent()
function editEvent(aEvent)
function editEvent(){ if( gCalendarWindow.EventSelection.selectedEvents.length == 1 ) { var calendarEvent = gCalendarWindow.EventSelection.selectedEvents[0]; if( calendarEvent != null ) { modifyEventWithDialog(getOccurrenceOrParent(calendarEvent)); } }}
if( gCalendarWindow.EventSelection.selectedEvents.length == 1 ) { var calendarEvent = gCalendarWindow.EventSelection.selectedEvents[0];
if (aEvent) { modifyEventWithDialog(aEvent); return; }
function editEvent(){ if( gCalendarWindow.EventSelection.selectedEvents.length == 1 ) { var calendarEvent = gCalendarWindow.EventSelection.selectedEvents[0]; if( calendarEvent != null ) { modifyEventWithDialog(getOccurrenceOrParent(calendarEvent)); } }}
if( calendarEvent != null ) { modifyEventWithDialog(getOccurrenceOrParent(calendarEvent)); } }
if (gXXXEvilHackSavedSelection.length == 1) { modifyEventWithDialog( getOccurrenceOrParent(gXXXEvilHackSavedSelection[0])); }
function editEvent(){ if( gCalendarWindow.EventSelection.selectedEvents.length == 1 ) { var calendarEvent = gCalendarWindow.EventSelection.selectedEvents[0]; if( calendarEvent != null ) { modifyEventWithDialog(getOccurrenceOrParent(calendarEvent)); } }}
editEvent( calendarEvent );
editEvent( calendarEvent.parentItem );
function editEventCommand(){ if( gCalendarWindow.EventSelection.selectedEvents.length == 1 ) { var calendarEvent = gCalendarWindow.EventSelection.selectedEvents[0]; if( calendarEvent != null ) { editEvent( calendarEvent ); } }}
if (hitReturnInList) { hitReturnInList = false; return false; }
function EditListOKButton(){ //Add mailing list to database if (GetListValue(editList, false)) { editList.editMailListToDatabase(parentURI); return true; // close the window } else return false; }
function editNewEvent( calendarEvent, server )
function editNewEvent( calendarEvent, calendar )
function editNewEvent( calendarEvent, server ){ openEventDialog(calendarEvent, "new", self.addEventDialogResponse, server);}
server);
calendar);
function editNewEvent( calendarEvent, server ){ openEventDialog(calendarEvent, "new", self.addEventDialogResponse, server);}
function editNewToDo( calendarToDo, server )
function editNewToDo( calendarToDo, calendar )
function editNewToDo( calendarToDo, server ){ openEventDialog(calendarToDo, "new", self.addToDoDialogResponse, server);}
server);
calendar);
function editNewToDo( calendarToDo, server ){ openEventDialog(calendarToDo, "new", self.addToDoDialogResponse, server);}
window.editorShell.Align(align);
editorShell.Align(align);
function EditorAlign(align){ dump("aligning\n"); window.editorShell.Align(align); contentWindow.focus();}
contentWindow.focus();
function EditorAlign(align){ dump("aligning\n"); if (appCore) { appCore.align(align); }}
window.editorShell.SetTextProperty(styleName, "", "");
editorShell.SetTextProperty(styleName, "", "");
function EditorApplyStyle(styleName){ dump("applying style\n"); window.editorShell.SetTextProperty(styleName, "", ""); contentWindow.focus();}
window.focus();
contentWindow.focus();
function EditorApplyStyle(styleName){ if (appCore) { dump("Applying Style\n"); appCore.setTextProperty(styleName, null, null); } window.focus();}
if (window.editorShell)
if (editorShell)
function EditorApplyStyleSheet(url){ if (window.editorShell) { window.editorShell.ApplyStyleSheet(url); }}
window.editorShell.ApplyStyleSheet(url);
editorShell.ApplyStyleSheet(url);
function EditorApplyStyleSheet(url){ if (window.editorShell) { window.editorShell.ApplyStyleSheet(url); }}
var canClose = CheckAndSaveDocument(GetString("BeforeClosing"));
var canClose = CheckAndSaveDocument(GetString("BeforeClosing"), true);
function EditorCanClose(){ // Returns FALSE only if user cancels save action //dump("Calling EditorCanClose\n"); var canClose = CheckAndSaveDocument(GetString("BeforeClosing")); // This is our only hook into closing via the "X" in the caption // or "Quit" (or other paths?) // so we must shift association to a...
if (event.target && gEditorDisplayMode == DisplayModeAllTags)
if (event.target && gIsHTMLEditor && gEditorDisplayMode == DisplayModeAllTags)
function EditorClick(event){ if (!event) return; if (event.detail == 2) { EditorDblClick(event); return; } // In Show All Tags Mode, // single click selects entire element, // except for body and table elements if (event.target && gEditorDisplayMode == DisplayModeAllTags) { try { var element ...
if (element) { var name = element.localName.toLowerCase(); if (name != "body" && name != "table" && name != "td" && name != "th" && name != "caption" && name != "tr") { var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (htmlEditor && event.target) { htmlEditor.selectElement(event.target);...
var name = element.localName.toLowerCase(); if (name != "body" && name != "table" && name != "td" && name != "th" && name != "caption" && name != "tr") { gEditor.selectElement(event.target); event.preventDefault();
function EditorClick(event){ if (!event) return; if (event.detail == 2) { EditorDblClick(event); return; } // In Show All Tags Mode, // single click selects entire element, // except for body and table elements if (event.target && gEditorDisplayMode == DisplayModeAllTags) { try { var element ...
if (event.target && isHTMLEditor() && gEditorDisplayMode == kDisplayModeAllTags)
if (event.target && IsWebComposer() && isHTMLEditor() && gEditorDisplayMode == kDisplayModeAllTags)
function EditorClick(event){ if (!event) return; if (event.detail == 2) { EditorDblClick(event); return; } // In Show All Tags Mode, // single click selects entire element, // except for body and table elements if (event.target && isHTMLEditor() && gEditorDisplayMode == kDisplayModeAllTags) { try ...
if (event && event.target && gEditorDisplayMode == DisplayModeAllTags)
if (event.target && gEditorDisplayMode == DisplayModeAllTags)
function EditorClick(event){ // In Show All Tags Mode, // single click selects entire element, // except for body and table elements if (event && event.target && gEditorDisplayMode == DisplayModeAllTags) { try { var element = event.target.QueryInterface( Components.interfaces.nsIDOMElement); if (elem...
window.editorShell.CloseWindow();
editorShell.CloseWindow();
function EditorClose(){ dump("In EditorClose...\n"); window.editorShell.CloseWindow();}
window.editorShell.Copy();
editorShell.Copy();
function EditorCopy(){ window.editorShell.Copy(); contentWindow.focus();}
window.editorShell.Cut();
editorShell.Cut();
function EditorCut(){ window.editorShell.Cut(); contentWindow.focus();}
element = editorShell.getSelectedElement("href");
element = gEditor.getSelectedElement("href");
function EditorDblClick(event){ if (event.target) { // Only bring up properties if clicked on an element or selected link var element; try { element = event.target.QueryInterface(Components.interfaces.nsIDOMElement); } catch (e) {} // We use "href" instead of "a" to not be fooled by named anchor...
didTruncate.value = !didTruncate.value;
function EditorExecuteScript(fileSpec){ fileSpec.openStreamForReading(); var buf = { value:null }; var tmpBuf = { value:null }; var didTruncate = { value:false }; // Log files can be quite huge, so read in a line // at a time and execute it: while (!fileSpec.eof()) { buf.value = ""; d...
if (window.editorShell) { dump("Exiting\n"); window.editorShell.Exit(); }
dump("Exiting\n"); editorShell.Exit();
function EditorExit(){ if (window.editorShell) { dump("Exiting\n"); window.editorShell.Exit(); }}
goUpdateCommand("cmd_undo"); goUpdateCommand("cmd_redo"); goUpdateCommand("cmd_cut"); goUpdateCommand("cmd_copy"); goUpdateCommand("cmd_paste"); goUpdateCommand("cmd_pasteNoFormatting"); goUpdateCommand("cmd_delete"); goUpdateCommand("cmd_link");
function EditorFillContextMenu(event, contextMenuNode){ if ( event.target != contextMenuNode ) return; goUpdateCommand("cmd_undo"); goUpdateCommand("cmd_redo"); goUpdateCommand("cmd_cut"); goUpdateCommand("cmd_copy"); goUpdateCommand("cmd_paste"); goUpdateCommand("cmd_pasteNoFormatting"); goUpdateCommand("cm...
SetElementEnabledById("createLink_cm", !isInLink); SetElementEnabledById("editLink_cm", isInLink);
function EditorFillContextMenu(event, contextMenuNode){ if ( event.target != contextMenuNode ) return; goUpdateCommand("cmd_undo"); goUpdateCommand("cmd_redo"); goUpdateCommand("cmd_cut"); goUpdateCommand("cmd_copy"); goUpdateCommand("cmd_paste"); goUpdateCommand("cmd_pasteNoFormatting"); goUpdateCommand("cm...
HideDisabledItem(children.item(i));
HideDisabledItem(children[i]);
function EditorFillContextMenu(event, contextMenuNode){ if ( event.target != contextMenuNode ) return; goUpdateCommand("cmd_undo"); goUpdateCommand("cmd_redo"); goUpdateCommand("cmd_cut"); goUpdateCommand("cmd_copy"); goUpdateCommand("cmd_paste"); goUpdateCommand("cmd_pasteNoFormatting"); goUpdateCommand("cm...
ShowMenuItem("createLink_cm", !isInLink); ShowMenuItem("editLink_cm", isInLink);
function EditorFillContextMenu(event, contextMenuNode){ if ( event.target != contextMenuNode ) return; goUpdateCommand("cmd_undo"); goUpdateCommand("cmd_redo"); goUpdateCommand("cmd_cut"); goUpdateCommand("cmd_copy"); goUpdateCommand("cmd_paste"); goUpdateCommand("cmd_pasteNoFormatting"); goUpdateCommand("cm...
goUpdateCommand("cmd_JoinTableCells"); goUpdateCommand("cmd_SplitTableCell"); goUpdateCommand("cmd_TableOrCellColor");
goUpdateTableMenuItems(document.getElementById("composerTableMenuItems"));
function EditorFillContextMenu(event, contextMenuNode){ if ( event.target != contextMenuNode ) return; goUpdateCommand("cmd_undo"); goUpdateCommand("cmd_redo"); goUpdateCommand("cmd_cut"); goUpdateCommand("cmd_copy"); goUpdateCommand("cmd_paste"); goUpdateCommand("cmd_delete"); // Setup object property menui...
window.editorShell.Find();
editorShell.Find();
function EditorFind(){ window.editorShell.Find(); contentWindow.focus();}
contentWindow.focus();
function EditorFind(){ if (appCore) { appCore.find(); }}
window.editorShell.FindNext();
editorShell.FindNext();
function EditorFindNext(){ window.editorShell.FindNext();}
contentWindow.focus();
function EditorFindNext(){ if (appCore) { appCore.findNext(); }}
if (window.editorShell) {
if (editorShell) {
function EditorGetHTML(){ if (window.editorShell) { dump("Getting HTML\n"); var outputText = window.editorShell.contentsAsHTML; dump(outputText + "\n"); }}
var outputText = window.editorShell.contentsAsHTML;
var outputText = editorShell.contentsAsHTML;
function EditorGetHTML(){ if (window.editorShell) { dump("Getting HTML\n"); var outputText = window.editorShell.contentsAsHTML; dump(outputText + "\n"); }}
var outputText = editorShell.contentsAsHTML; dump(outputText + "\n");
var outputHTML = editorShell.GetContentsAs("text/html", 2); dump(outputHTML + "\n");
function EditorGetHTML(){ if (editorShell) { dump("Getting HTML\n"); var outputText = editorShell.contentsAsHTML; dump(outputText + "\n"); }}
node = window.editorShell.editorDocument;
node = editorShell.editorDocument;
function EditorGetNodeFromOffsets(offsets){ var node = null; var i; node = window.editorShell.editorDocument; for (i = 0; i < offsets.length; i++) { node = node.childNodes[offsets[i]]; } return node;}
if (window.editorShell) {
if (editorShell) {
function EditorGetText(){ if (window.editorShell) { dump("Getting text\n"); var outputText = window.editorShell.contentsAsText; dump(outputText + "\n"); }}
var outputText = window.editorShell.contentsAsText;
var outputText = editorShell.contentsAsText;
function EditorGetText(){ if (window.editorShell) { dump("Getting text\n"); var outputText = window.editorShell.contentsAsText; dump(outputText + "\n"); }}
var outputText = editorShell.contentsAsText;
var outputText = editorShell.GetContentsAs("text/plain", 2);
function EditorGetText(){ if (editorShell) { dump("Getting text\n"); var outputText = editorShell.contentsAsText; dump(outputText + "\n"); }}
function EditorGetTextProperty(property, attribute, value)
function EditorGetTextProperty(property, attribute, value, firstHas, anyHas, allHas)
function EditorGetTextProperty(property, attribute, value){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (!htmlEditor) return; htmlEditor.getTextProperty("font", "size", sizeString, firstHas, anyHas, allHas);}
var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (!htmlEditor) return; htmlEditor.getTextProperty("font", "size", sizeString,
if (!gIsHTMLEditor) return; try { if (!gAtomService) GetAtomService(); var propAtom = gAtomService.getAtom(property); gEditor.getInlineProperty(propAtom, attribute, value,
function EditorGetTextProperty(property, attribute, value){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (!htmlEditor) return; htmlEditor.getTextProperty("font", "size", sizeString, firstHas, anyHas, allHas);}
} catch(e) {}
function EditorGetTextProperty(property, attribute, value){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (!htmlEditor) return; htmlEditor.getTextProperty("font", "size", sizeString, firstHas, anyHas, allHas);}
dump("indenting\n");
dump(indent+"\n");
function EditorIndent(indent){ dump("indenting\n"); editorShell.Indent(indent); contentWindow.focus();}
window.editorShell.Indent(indent);
editorShell.Indent(indent);
function EditorIndent(indent){ dump("indenting\n"); window.editorShell.Indent(indent); contentWindow.focus();}
contentWindow.focus();
function EditorIndent(indent){ dump("indenting\n"); if (appCore) { appCore.indent(indent); }}
propertiesMenu.removeAttribute("disabled");
function EditorInitFormatMenu(){ var propertiesMenu = document.getElementById("objectProperties"); if (propertiesMenu) { var element = GetSelectedElementOrParentCell(); if (element) { dump("TagName="+element.nodeName+"\n"); if (element.nodeName) { propertiesMenu.removeAttribute("hidden...
menuItem.setAttribute("value", menuStr)
menuItem.setAttribute("value", menuStr);
function EditorInitFormatMenu(){ // Set the string for the background color menu item SetBackColorString("backgroundColorMenu"); var menuItem = document.getElementById("objectProperties"); if (menuItem) { var element = GetSelectedElementOrParentCell(); var menuStr = editorShell.GetString("ObjectProperties")...
if (!IsEditorContentHTML())
if (!gIsHTMLEditor)
function EditorInitToolbars(){ // Nothing to do now, but we might want some state updating here if (!IsEditorContentHTML()) { //Hide the formating toolbar gFormatToolbar.setAttribute("hidden", "true"); //Hide the edit mode toolbar gEditModeBar.setAttribute("hidden", "true"); SetElementEnabledById(...
gFormatToolbar.setAttribute("hidden", "true");
HideItem("FormatToolbar");
function EditorInitToolbars(){ // Nothing to do now, but we might want some state updating here if (!IsEditorContentHTML()) { //Hide the formating toolbar gFormatToolbar.setAttribute("hidden", "true"); //Hide the edit mode toolbar gEditModeBar.setAttribute("hidden", "true"); SetElementEnabledById(...
gEditModeBar.setAttribute("hidden", "true");
HideItem("EditModeToolbar");
function EditorInitToolbars(){ // Nothing to do now, but we might want some state updating here if (!IsEditorContentHTML()) { //Hide the formating toolbar gFormatToolbar.setAttribute("hidden", "true"); //Hide the edit mode toolbar gEditModeBar.setAttribute("hidden", "true"); SetElementEnabledById(...
editorShell.InsertElement(hLine, false);
editorShell.InsertElement(hLine, true);
function EditorInsertHLine(){ // Inserting an HLine is different in that we don't use properties dialog // unless we are editing an existing line's attributes // We get the last-used attributes from the prefs and insert immediately tagName = "hr"; hLine = editorShell.GetSelectedElement(tagName); if (hLine) { ...
if (window.editorShell) {
function EditorInsertHLine(){ if (window.editorShell) { // Inserting an HLine is different in that we don't use properties dialog // unless we are editing an existing line's attributes // We get the last-used attributes from the prefs and insert immediately tagName = "hr"; hLine = window.editorShell.G...
tagName = "hr"; hLine = editorShell.GetSelectedElement(tagName);
function EditorInsertHLine(){ if (window.editorShell) { // Inserting an HLine is different in that we don't use properties dialog // unless we are editing an existing line's attributes // We get the last-used attributes from the prefs and insert immediately tagName = "hr"; hLine = window.editorShell.G...
tagName = "hr"; hLine = window.editorShell.GetSelectedElement(tagName);
if (hLine) { window.openDialog("chrome: } else { hLine = editorShell.CreateElementWithDefaults(tagName);
function EditorInsertHLine(){ if (window.editorShell) { // Inserting an HLine is different in that we don't use properties dialog // unless we are editing an existing line's attributes // We get the last-used attributes from the prefs and insert immediately tagName = "hr"; hLine = window.editorShell.G...
window.openDialog("chrome: } else { hLine = window.editorShell.CreateElementWithDefaults(tagName); if (hLine) { window.editorShell.InsertElement(hLine, false); }
editorShell.InsertElement(hLine, false);
function EditorInsertHLine(){ if (window.editorShell) { // Inserting an HLine is different in that we don't use properties dialog // unless we are editing an existing line's attributes // We get the last-used attributes from the prefs and insert immediately tagName = "hr"; hLine = window.editorShell.G...
var prefs = Components.classes['component: if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { dump(" We found the Prefs Service\n"); var percent; var height; var shading; var ud = "undefined"; try { var align = prefs.GetIntPref("editor.hr...
function EditorInsertHLine(){ // Inserting an HLine is different in that we don't use properties dialog // unless we are editing an existing line's attributes // We get the last-used attributes from the prefs and insert immediately tagName = "hr"; hLine = editorShell.GetSelectedElement(tagName); if (hLine) { ...
if (window.editorShell) { window.openDialog("chrome: "InsSrcDlg", "chrome", ""); }
window.openDialog("chrome: "InsSrcDlg", "chrome", "");
function EditorInsertHTML(){ if (window.editorShell) { window.openDialog("chrome://editordlgs/content/EdInsSrc.xul", "InsSrcDlg", "chrome", ""); }}
dump("Image Properties Dialog starting. Editor Name="+editorName+"\n");
function EditorInsertImage(){ if (appCore) { dump("Image Properties Dialog starting. Editor Name="+editorName+"\n"); window.openDialog("chrome://editordlgs/content/EdImageProps.xul", "dlg", "chrome", editorName); }}
contentWindow.focus();
function EditorInsertImage(){ if (appCore) { dump("Image Properties Dialog starting. Editor Name="+editorName+"\n"); window.openDialog("chrome://editordlgs/content/EdImageProps.xul", "dlg", "chrome", editorName); }}
if (window.editorShell) { window.openDialog("chrome: }
window.openDialog("chrome:
function EditorInsertLink(){ if (window.editorShell) { window.openDialog("chrome://editordlgs/content/EdLinkProps.xul", "LinkDlg", "chrome", ""); } contentWindow.focus();}
dump("Starting Insert Link...\n");
function EditorInsertLink(){ dump("Starting Insert Link...\n"); if (appCore) { dump("Link Properties Dialog starting...\n"); window.openDialog("chrome://editordlgs/content/EdLinkProps.xul", "LinkDlg", "chrome", editorName); }}
dump("Link Properties Dialog starting...\n");
function EditorInsertLink(){ dump("Starting Insert Link...\n"); if (appCore) { dump("Link Properties Dialog starting...\n"); window.openDialog("chrome://editordlgs/content/EdLinkProps.xul", "LinkDlg", "chrome", editorName); }}
contentWindow.focus();
function EditorInsertLink(){ dump("Starting Insert Link...\n"); if (appCore) { dump("Link Properties Dialog starting...\n"); window.openDialog("chrome://editordlgs/content/EdLinkProps.xul", "LinkDlg", "chrome", editorName); }}
window.editorShell.InsertList(listType);
editorShell.InsertList(listType);
function EditorInsertList(listType){ dump("Inserting list\n"); window.editorShell.InsertList(listType); contentWindow.focus();}
contentWindow.focus();
function EditorInsertList(listType){ if (appCore) { dump("Inserting list\n"); appCore.insertList(listType); dump("\n"); }}
if (window.editorShell) { window.editorShell.InsertText(textToInsert); }
editorShell.InsertText(textToInsert);
function EditorInsertText(textToInsert){ if (window.editorShell) { window.editorShell.InsertText(textToInsert); }}
window.editorShell.NewWindow();
editorShell.NewWindow();
function EditorNew(){ dump("In EditorNew..\n"); window.editorShell.NewWindow();}
"chrome:
"about:blank");
function EditorNewPlaintext(){ window.openDialog( "chrome://editor/content/TextEditorAppShell.xul", "_blank", "chrome,dialog=no,all", "chrome://editor/content/EditorInitPagePlain.html");}
WebCompose = true;
function EditorOnLoad(){ // See if argument was passed. if ( window.arguments && window.arguments[0] ) { // Opened via window.openDialog with URL as argument. // Put argument where EditorStartup expects it. document.getElementById( "args" ).setAttribute( "value", window.arguments[0] ); } ...
var styleMenu = document.getElementById("stylesheetMenu") if (styleMenu) styleMenu.removeAttribute("hidden"); WebCompose = true; window.tryToClose = EditorClose;
function EditorOnLoad(){ // See if argument was passed. if ( window.arguments && window.arguments[0] ) { // Opened via window.openDialog with URL as argument. // Put argument where EditorStartup expects it. document.getElementById( "args" ).setAttribute( "value", window.arguments[0] ); ...
window.editorShell.Open();
editorShell.Open();
function EditorOpen(){ dump("In EditorOpen..\n"); window.editorShell.Open();}
contentWindow.focus();
function EditorOpen(){ dump("In EditorOpen..\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { appCore.open(); }}
window.editorShell.Paste();
editorShell.Paste();
function EditorPaste(){ window.editorShell.Paste(); contentWindow.focus();}
window.editorShell.PasteAsQuotation();
editorShell.PasteAsQuotation();
function EditorPasteAsQuotation(){ window.editorShell.PasteAsQuotation(); contentWindow.focus();}
window.editorShell.PasteAsCitedQuotation(CiteString);
editorShell.PasteAsCitedQuotation(CiteString);
function EditorPasteAsQuotationCited(citeString){ window.editorShell.PasteAsCitedQuotation(CiteString); contentWindow.focus();}
window.editorShell.Print();
editorShell.Print();
function EditorPrint(){ dump("In EditorPrint..\n"); window.editorShell.Print(); contentWindow.focus();}
contentWindow.focus();
function EditorPrint(){ dump("In EditorPrint..\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { appCore.print(); }}
window.editorShell.Redo();
editorShell.Redo();
function EditorRedo(){ dump("Redoing\n"); window.editorShell.Redo(); contentWindow.focus();}
window.editorShell.RemoveTextProperty(styleName, "");
editorShell.RemoveTextProperty(styleName, "");
function EditorRemoveStyle(styleName){ window.editorShell.RemoveTextProperty(styleName, ""); contentWindow.focus();}
window.focus();
contentWindow.focus();
function EditorRemoveStyle(styleName){ if (appCore) { dump("Removing Style\n"); appCore.removeTextProperty(styleName, null); } window.focus();}
var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (!htmlEditor) return; if (!gAtomService) GetAtomService(); var propAtom = gAtomService.getAtom(property); htmlEditor.removeInlineProperty(propAtom, attribute); gContentWindow.focus();
if (!gIsHTMLEditor) return; try { if (!gAtomService) GetAtomService(); var propAtom = gAtomService.getAtom(property); gEditor.removeInlineProperty(propAtom, attribute); gContentWindow.focus(); } catch(e) {}
function EditorRemoveTextProperty(property, attribute){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (!htmlEditor) return; if (!gAtomService) GetAtomService(); var propAtom = gAtomService.getAtom(property); htmlEditor.removeInlineProperty(propAtom, attribute); gContentWindow.fo...
window.editorShell.Save();
editorShell.Save();
function EditorSave(){ dump("In EditorSave...\n"); window.editorShell.Save(); contentWindow.focus();}
contentWindow.focus();
function EditorSave(){ dump("In EditorSave...\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { appCore.save(); }}
window.editorShell.SaveAs();
editorShell.SaveAs();
function EditorSaveAs(){ dump("In EditorSave...\n"); window.editorShell.SaveAs(); contentWindow.focus();}
contentWindow.focus();
function EditorSaveAs(){ dump("In EditorSave...\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { appCore.saveAs(); }}
window.editorShell.SelectAll();
editorShell.SelectAll();
function EditorSelectAll(){ window.editorShell.SelectAll(); contentWindow.focus();}
function EditorSelectBackColor()
function EditorSelectBackColor(ColorPickerID, ColorWellID)
function EditorSelectBackColor(){ dump("EditorSelectBackColor\n");}
dump("EditorSelectBackColor\n");
var color = getColorAndSetColorWell(ColorPickerID, ColorWellID); dump("EditorSelectBackColor: "+color+"\n"); EditorSetBackgroundColor(color);
function EditorSelectBackColor(){ dump("EditorSelectBackColor\n");}
SetTextColorButton(gColorObj.TextColor);
broadcaster = document.getElementById("cmd_fontColor"); if (broadcaster) broadcaster.setAttribute("state",gColorObj.TextColor);
function EditorSelectColor(colorType){ if (!gColorObj) gColorObj = new Object; var element; var table; var currentColor = ""; if (!colorType) colorType = ""; if (colorType == "Text") { gColorObj.Type = colorType; // Get color from command node state var commandNode = document.getElementById("cmd_fo...
SetBackgroundColorButton(gColorObj.BackgroundColor);
broadcaster = document.getElementById("cmd_backgroundColor"); if (broadcaster) broadcaster.setAttribute("state",gColorObj.BackgroundColor);
function EditorSelectColor(colorType){ if (!gColorObj) gColorObj = new Object; var element; var table; var currentColor = ""; if (!colorType) colorType = ""; if (colorType == "Text") { gColorObj.Type = colorType; // Get color from command node state var commandNode = document.getElementById("cmd_fo...
function EditorSelectTextColor()
function EditorSelectTextColor(ColorPickerID, ColorWellID)
function EditorSelectTextColor(){ dump("EditorSelectTextColor\n");}
dump("EditorSelectTextColor\n");
var color = getColorAndSetColorWell(ColorPickerID, ColorWellID); dump("EditorSelectTextColor: "+color+"\n"); EditorSetFontColor(color);
function EditorSelectTextColor(){ dump("EditorSelectTextColor\n");}