rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var ary = seq.match(/([\da-f]{1,2})(.*)|u([\da-f]{1,4})/);
var ary = seq.match(/([\da-f]{1,2})(.*)|u([\da-f]{1,4})/i);
function ecmaUnescape(str){ function replaceEscapes(seq) { var ary = seq.match(/([\da-f]{1,2})(.*)|u([\da-f]{1,4})/); if (!ary) return "<ERROR>"; var rv; if (ary[1]) { // two digit escape, possibly with cruft after rv = String.fromCharCode(parseI...
CallSaveListeners();
NotifySaveListeners();
function EditCardOKButton(){ SetCardValues(editCard.card, document); editCard.card.editCardToDatabase(editCard.abURI); CallSaveListeners(); // callback to allow caller to update if ("okCallback" in editCard) editCard.okCallback(); return true; // close the window}
if ("okCallback" in editCard) editCard.okCallback();
if (gOkCallback) gOkCallback();
function EditCardOKButton(){ SetCardValues(editCard.card, document); editCard.card.editCardToDatabase(editCard.abURI); CallSaveListeners(); // callback to allow caller to update if ("okCallback" in editCard) editCard.okCallback(); return true; // close the window}
window.width = 700; window.height = 700;
function EditDictionary(){ dump("SpellCheck: EditDictionary TODO: IMPLEMENT DIALOG\n");}
gUpdate = false;
function editDirectory(){ var args = { selectedDirectory: null, selectedDirectoryString: null, result: false}; if(gCurrentDirectoryServer && gCurrentDirectoryServerId) { args.selectedDirectory = gCurrentDirectoryServer; args.selectedDirectoryString = gCurrentDirectoryServerId; win...
if(gUpdate) { var directoriesTree = document.getElementById("directoriesTree"); var selectedNode = directoriesTree.selectedItems[0]; var row = selectedNode.firstChild; var cell = row.firstChild; cell.setAttribute('label', gNewServer); cell.setAttribute('string', gNewServerString); gUpdate = false; window.open...
function editDirectory(){ var args = { selectedDirectory: null, selectedDirectoryString: null, result: false}; if(gCurrentDirectoryServer && gCurrentDirectoryServerId) { args.selectedDirectory = gCurrentDirectoryServer; args.selectedDirectoryString = gCurrentDirectoryServerId; win...
if (insertNewIMap) { imageMap = editorShell.CreateElementWithDefaults("map"); globalMap = imageMap.cloneNode(true); } else globalMap = imageMap;
function editImageMap(){ window.openDialog("chrome://editor/content/EdImageMap.xul", "_blank", "chrome,close,titlebar,modal", globalElement, globalMap);}
urlSecurityCheck( this.linkURL(), window.document );
editLink : function () { editPage( this.linkURL(), window, false ); },
if (GetListValue(editList, false))
if (GetListValue(gEditList, false))
function EditListOKButton(){ if (hitReturnInList) { hitReturnInList = false; return false; } //Add mailing list to database if (GetListValue(editList, false)) { editList.editMailListToDatabase(parentURI); return true; // close the window } else return false;}
editList.editMailListToDatabase(parentURI);
if (gListCard) { gListCard.displayName = gEditList.dirName; gListCard.lastName = gEditList.dirName; gListCard.nickName = gEditList.listNickName; gListCard.notes = gEditList.description; } gEditList.editMailListToDatabase(gParentURI, gListCard); if (gOkCallback) gOkCallback();
function EditListOKButton(){ if (hitReturnInList) { hitReturnInList = false; return false; } //Add mailing list to database if (GetListValue(editList, false)) { editList.editMailListToDatabase(parentURI); return true; // close the window } else return false;}
contentWindow.focus();
gContentWindow.focus();
function EditorApplyStyle(tagName){ dump("applying style\n"); editorShell.SetTextProperty(tagName, "", ""); contentWindow.focus();}
window.focus();
function EditorApplyStyle(styleName){ if (appCore) { dump("Applying Style\n"); appCore.setTextProperty(styleName, null, null); }}
{ if (appCore) { dump("Applying Style\n"); appCore.setTextProperty(styleName, null, null); }
{ if (appCore) { dump("Applying Style\n"); appCore.setTextProperty(styleName, null, null);
function EditorApplyStyle(styleName) { if (appCore) { dump("Applying Style\n"); appCore.setTextProperty(styleName, null, null); } }
}
function EditorApplyStyle(styleName) { if (appCore) { dump("Applying Style\n"); appCore.setTextProperty(styleName, null, null); } }
dump("Calling EditorCanClose\n");
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 ano...
dump("In EditorClose...\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { }
appCore.closeWindow();
function EditorClose() { dump("In EditorClose...\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { } }
}
function EditorClose() { dump("In EditorClose...\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { } }
{ if (appCore) { dump("Copying\n"); appCore.copy(); }
{ if (appCore) { dump("Copying\n"); appCore.copy();
function EditorCopy() { if (appCore) { dump("Copying\n"); appCore.copy(); } }
}
function EditorCopy() { if (appCore) { dump("Copying\n"); appCore.copy(); } }
{ if (appCore) { dump("Cutting\n"); appCore.cut(); }
{ if (appCore) { dump("Cutting\n"); appCore.cut();
function EditorCut() { if (appCore) { dump("Cutting\n"); appCore.cut(); } }
}
function EditorCut() { if (appCore) { dump("Cutting\n"); appCore.cut(); } }
{ if (appCore) { dump("Exiting\n"); appCore.exit(); }
{ if (appCore) { dump("Exiting\n"); appCore.exit();
function EditorExit() { if (appCore) { dump("Exiting\n"); appCore.exit(); } }
}
function EditorExit() { if (appCore) { dump("Exiting\n"); appCore.exit(); } }
if (inCell) { InitJoinCellMenuitem("joinTableCells_cm");
InitJoinCellMenuitem("joinTableCells_cm");
function EditorFillContextMenu(event, contextMenuNode){ if ( event.target != contextMenuNode ) return; // Setup object property menuitem var objectName = InitObjectPropertiesMenuitem("objectProperties_cm"); InitRemoveStylesMenuitems("removeStylesMenuitem_cm", "removeLinksMenuitem_cm"); var inCell = IsInTableCel...
goUpdateCommand("cmd_JoinTableCells"); goUpdateCommand("cmd_SplitTableCell"); goUpdateCommand("cmd_TableOrCellColor"); }
goUpdateCommand("cmd_JoinTableCells"); goUpdateCommand("cmd_SplitTableCell"); goUpdateCommand("cmd_TableOrCellColor");
function EditorFillContextMenu(event, contextMenuNode){ if ( event.target != contextMenuNode ) return; // Setup object property menuitem var objectName = InitObjectPropertiesMenuitem("objectProperties_cm"); InitRemoveStylesMenuitems("removeStylesMenuitem_cm", "removeLinksMenuitem_cm"); var inCell = IsInTableCel...
if (toolkitCore && firstTime) { toolkitCore.ShowWindow("resource:/res/samples/find.xul", window);
if (firstTime) { window.openDialog("resource:/res/samples/find.xul", "find", "chrome");
function EditorFind(firstTime){ if (toolkitCore && firstTime) { toolkitCore.ShowWindow("resource:/res/samples/find.xul", window); } if (appCore) { appCore.find("test", true, true); }}
{ if (toolkitCore && firstTime) { toolkitCore.ShowWindow("resource:/res/samples/find.xul", window); } if (appCore) { appCore.find("test", true, true); }
{ if (toolkitCore && firstTime) { toolkitCore.ShowWindow("resource:/res/samples/find.xul", window);
function EditorFind(firstTime) { if (toolkitCore && firstTime) { toolkitCore.ShowWindow("resource:/res/samples/find.xul", window); } if (appCore) { appCore.find("test", true, true); } }
if (appCore) { appCore.find("test", true, true); } }
function EditorFind(firstTime) { if (toolkitCore && firstTime) { toolkitCore.ShowWindow("resource:/res/samples/find.xul", window); } if (appCore) { appCore.find("test", true, true); } }
{ if (appCore) { dump("Getting HTML\n"); var outputText = appCore.contentsAsHTML; dump(outputText + "\n"); }
{ if (appCore) { dump("Getting HTML\n"); var outputText = appCore.contentsAsHTML; dump(outputText + "\n");
function EditorGetHTML() { if (appCore) { dump("Getting HTML\n"); var outputText = appCore.contentsAsHTML; dump(outputText + "\n"); } }
}
function EditorGetHTML() { if (appCore) { dump("Getting HTML\n"); var outputText = appCore.contentsAsHTML; dump(outputText + "\n"); } }
var i;
function EditorGetNodeFromOffsets(offsets){ var node = null; var i; node = editorShell.editorDocument; for (i = 0; i < offsets.length; i++) { node = node.childNodes[offsets[i]]; } return node;}
for (i = 0; i < offsets.length; i++)
for (var i = 0; i < offsets.length; i++)
function EditorGetNodeFromOffsets(offsets){ var node = null; var i; node = editorShell.editorDocument; for (i = 0; i < offsets.length; i++) { node = node.childNodes[offsets[i]]; } return node;}
{ if (appCore) { dump("Getting text\n"); var outputText = appCore.contentsAsText; dump(outputText + "\n"); }
{ if (appCore) { dump("Getting text\n"); var outputText = appCore.contentsAsText; dump(outputText + "\n");
function EditorGetText() { if (appCore) { dump("Getting text\n"); var outputText = appCore.contentsAsText; dump(outputText + "\n"); } }
}
function EditorGetText() { if (appCore) { dump("Getting text\n"); var outputText = appCore.contentsAsText; dump(outputText + "\n"); } }
switch (element.nodeName)
var name = element.nodeName.toLowerCase(); switch (name)
function EditorInitFormatMenu(){ // Set the string for the background color menu item SetBackColorString("backgroundColorMenu"); // Set strings and enable for the [Object] Properties item // Note that we directly do the enabling instead of // using goSetCommandEnabled since we already have the menuitem var menu...
InitRemoveStylesMenuitems("removeStylesMenuitem", "removeLinksMenuitem");
function EditorInitFormatMenu(){ InitObjectPropertiesMenuitem("objectProperties"); // Change text on the "Remove styles" and "Remove links" // for better wording when }
InitObjectPropertiesMenuitem("objectProperties"); InitRemoveStylesMenuitems("removeStylesMenuitem", "removeLinksMenuitem");
try { InitObjectPropertiesMenuitem("objectProperties"); InitRemoveStylesMenuitems("removeStylesMenuitem", "removeLinksMenuitem"); } catch(ex) {}
function EditorInitFormatMenu(){ InitObjectPropertiesMenuitem("objectProperties"); InitRemoveStylesMenuitems("removeStylesMenuitem", "removeLinksMenuitem"); // Set alignment check}
if (gIsWin) osKey = "XulKeyWin"; if (gIsMac) osKey = "XulKeyMac"; if (gIsUNIX) osKey = "XulKeyUnix";
var tableKey = gIsMac ? "XulKeyMac" : "TableSelectKey"; tableKey = GetString(tableKey); var DragStr = tableKey+GetString("Drag"); var ClickStr = tableKey+GetString("Click");
function EditorInitTableMenu(){ // Change text on the "Join..." item depending if we // are joining selected cells or just cell to right // TODO: What to do about normal selection that crosses // table border? Try to figure out all cells // included in the selection? var menuText; // Use "Join sele...
var DragStr = GetString(osKey)+GetString("Drag"); var ClickStr = GetString(osKey)+GetString("Click");
function EditorInitTableMenu(){ // Change text on the "Join..." item depending if we // are joining selected cells or just cell to right // TODO: What to do about normal selection that crosses // table border? Try to figure out all cells // included in the selection? var menuText; // Use "Join sele...
var menuText; var tagNameObj = new Object; var countObj = new Object; if (window.editorShell.GetSelectedOrParentTableElement(tagNameObj, countObj) && countObj.value > 1) menuText = GetString("JoinSelectedCells"); else menuText = GetString("JoinCellToRight"); document.getElementById("menu_JoinTableCells").setAttribut...
InitJoinCellMenuitem("menu_JoinTableCells");
function EditorInitTableMenu(){ // Change text on the "Join..." item depending if we // are joining selected cells or just cell to right // TODO: What to do about normal selection that crosses // table border? Try to figure out all cells // included in the selection? var menuText; // Use "Join sele...
InitJoinCellMenuitem("menu_JoinTableCells");
try { InitJoinCellMenuitem("menu_JoinTableCells"); } catch (ex) {}
function EditorInitTableMenu(){ InitJoinCellMenuitem("menu_JoinTableCells"); // Set enable states for all table commands goUpdateTableMenuItems(document.getElementById("composerTableMenuItems"));}
if (!IsEditorContentHTML()) { gFormatToolbar.setAttribute("hidden", "true"); gEditModeBar.setAttribute("hidden", "true"); DisableItem("cmd_viewFormatToolbar", true); DisableItem("cmd_viewEditModeToolbar", true); }
function EditorInitToolbars(){ // Nothing to do now, but we might want some state updating here}
dump("Starting Insert Image...\n"); if (appCore && toolkitCore) { dump("Link Properties Dialog starting...\n"); toolkitCore.ShowWindowWithArgs("chrome:
if (appCore) { dump("Image Properties Dialog starting. Editor Name="+editorName+"\n"); window.openDialog("chrome:
function EditorInsertImage(){ dump("Starting Insert Image...\n"); if (appCore && toolkitCore) { dump("Link Properties Dialog starting...\n"); //toolkitCore.ShowModalDialog("chrome://editordlgs/content/EdImageProps.xul", window); toolkitCore.ShowWindowWithArgs("chrome://editordlgs/content/EdImageProps.xul", w...
{ dump("Starting Insert Image...\n"); if (appCore && toolkitCore) { dump("Link Properties Dialog starting...\n"); toolkitCore.ShowModalDialog("chrome: window); }
{ dump("Starting Insert Image...\n"); if (appCore && toolkitCore) { dump("Link Properties Dialog starting...\n"); toolkitCore.ShowWindowWithArgs("chrome:
function EditorInsertImage() { dump("Starting Insert Image...\n"); if (appCore && toolkitCore) { dump("Link Properties Dialog starting...\n"); toolkitCore.ShowModalDialog("chrome://editordlgs/content/EdImageProps.xul", window); } }
}
function EditorInsertImage() { dump("Starting Insert Image...\n"); if (appCore && toolkitCore) { dump("Link Properties Dialog starting...\n"); toolkitCore.ShowModalDialog("chrome://editordlgs/content/EdImageProps.xul", window); } }
dump("Starting Insert Link... appCore, toolkitCore: "+(appCore==null)+(toolkitCore==null)+"\n"); if (appCore && toolkitCore) {
dump("Starting Insert Link...\n"); if (appCore) {
function EditorInsertLink(){ dump("Starting Insert Link... appCore, toolkitCore: "+(appCore==null)+(toolkitCore==null)+"\n"); if (appCore && toolkitCore) { dump("Link Properties Dialog starting...\n"); // go back to using this when window.opener works. //toolkitCore.ShowModalDialog("chrome://editordlgs/conte...
toolkitCore.ShowWindowWithArgs("chrome:
window.openDialog("chrome:
function EditorInsertLink(){ dump("Starting Insert Link... appCore, toolkitCore: "+(appCore==null)+(toolkitCore==null)+"\n"); if (appCore && toolkitCore) { dump("Link Properties Dialog starting...\n"); // go back to using this when window.opener works. //toolkitCore.ShowModalDialog("chrome://editordlgs/conte...
{ dump("Starting Insert Link... appCore, toolkitCore: "+(appCore==null)+(toolkitCore==null)+"\n"); if (appCore && toolkitCore) { dump("Link Properties Dialog starting...\n"); toolkitCore.ShowModalDialog("chrome: window); }
{ dump("Starting Insert Link... appCore, toolkitCore: "+(appCore==null)+(toolkitCore==null)+"\n"); if (appCore && toolkitCore) { dump("Link Properties Dialog starting...\n"); toolkitCore.ShowWindowWithArgs("chrome:
function EditorInsertLink() { dump("Starting Insert Link... appCore, toolkitCore: "+(appCore==null)+(toolkitCore==null)+"\n"); if (appCore && toolkitCore) { dump("Link Properties Dialog starting...\n"); toolkitCore.ShowModalDialog("chrome://editordlgs/content/EdLinkProps.xul", window); } }
}
function EditorInsertLink() { dump("Starting Insert Link... appCore, toolkitCore: "+(appCore==null)+(toolkitCore==null)+"\n"); if (appCore && toolkitCore) { dump("Link Properties Dialog starting...\n"); toolkitCore.ShowModalDialog("chrome://editordlgs/content/EdLinkProps.xul", window); } }
{ if (appCore) { dump("Inserting link\n"); appCore.insertList(listType); }
{ if (appCore) { dump("Inserting link\n"); appCore.insertList(listType);
function EditorInsertList(listType) { if (appCore) { dump("Inserting link\n"); appCore.insertList(listType); } }
}
function EditorInsertList(listType) { if (appCore) { dump("Inserting link\n"); appCore.insertList(listType); } }
contentWindow.focus();
window.content.focus();
function EditorInsertOrEditTable(insertAllowed){ if (IsInTable()) { // Edit properties of existing table window.openDialog("chrome://editor/content/EdTableProps.xul", "_blank", "chrome,close,titlebar,modal", "","TablePanel"); contentWindow.focus(); } else if(insertAllowed) { EditorInsertTable(); }}
contentWindow.focus();
window.content.focus();
function EditorInsertTable(){ // Insert a new table window.openDialog("chrome://editor/content/EdInsertTable.xul", "_blank", "chrome,close,titlebar,modal", ""); contentWindow.focus();}
{ if (appCore) { dump("Inserting text\n"); appCore.insertText("Once more into the breach, dear friends.\n"); }
{ if (appCore) { dump("Inserting text\n"); appCore.insertText("Once more into the breach, dear friends.\n");
function EditorInsertText() { if (appCore) { dump("Inserting text\n"); appCore.insertText("Once more into the breach, dear friends.\n"); } }
}
function EditorInsertText() { if (appCore) { dump("Inserting text\n"); appCore.insertText("Once more into the breach, dear friends.\n"); } }
dump("Inserting text\n");
function EditorInsertText(){ if (window.editorShell) { dump("Inserting text\n"); window.editorShell.InsertText("Once more into the breach, dear friends.\n"); }}
dump("In EditorNewPlaintext..\n");
dump("In EditorNewBrowser..\n");
function EditorNewBrowser(){ dump("In EditorNewPlaintext..\n"); core = XPAppCoresManager.Find("toolkitCore"); if ( !core ) { core = new ToolkitCore(); if ( core ) { core.Init("toolkitCore"); } } if ( core ) { core.ShowWindowWithArgs( "chrome://navigator/", window, "" ); } else { dump("Error; ...
window.focus();
top.document.commandDispatcher.focusedWindow.focus();
function EditorOnFocus(){ // Current window already has the InsertCharWindow if ("InsertCharWindow" in window && window.InsertCharWindow) return; // Find window with an InsertCharsWindow and switch association to this one var windowWithDialog = FindEditorWithInsertCharDialog(); if (windowWithDialog) { // Switc...
try { gSourceContentWindow = document.getElementById("content-source"); gSourceContentWindow.makeEditable("text", false); gSourceTextEditor = gSourceContentWindow.getEditor(gSourceContentWindow.contentWindow); gSourceTextEditor.QueryInterface(Components.interfaces.nsIPlaintextEditor); gSourceTextEditor.enableUndo(false...
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] ); } ...
{ if (appCore) { dump("Pasting\n"); appCore.paste(); }
{ if (appCore) { dump("Pasting\n"); appCore.paste();
function EditorPaste() { if (appCore) { dump("Pasting\n"); appCore.paste(); } }
}
function EditorPaste() { if (appCore) { dump("Pasting\n"); appCore.paste(); } }
if (toolkitCore) { toolkitCore.ShowWindow("resource:/res/samples/printsetup.html", window); }
window.openDialog("resource:/res/samples/printsetup.html", "PrintPreview", "chrome", editorName);
function EditorPrintPreview() { if (toolkitCore) { toolkitCore.ShowWindow("resource:/res/samples/printsetup.html", window); }}
if (toolkitCore) { toolkitCore.ShowWindow("resource:/res/samples/printsetup.html", window); }
if (toolkitCore) { toolkitCore.ShowWindow("resource:/res/samples/printsetup.html", window);
function EditorPrintPreview() { if (toolkitCore) { toolkitCore.ShowWindow("resource:/res/samples/printsetup.html", window); } }
}
function EditorPrintPreview() { if (toolkitCore) { toolkitCore.ShowWindow("resource:/res/samples/printsetup.html", window); } }
{ if (appCore) { dump("Redoing\n"); appCore.redo(); }
{ if (appCore) { dump("Redoing\n"); appCore.redo();
function EditorRedo() { if (appCore) { dump("Redoing\n"); appCore.redo(); } }
}
function EditorRedo() { if (appCore) { dump("Redoing\n"); appCore.redo(); } }
contentWindow.focus();
gContentWindow.focus();
function EditorRemoveBackColor(ColorWellID){ if (ColorWellID) { var menupopup = document.getElementById("BackColorPopup"); if (menupopup) menupopup.closePopup(); } //TODO: Set colorwell to browser's default color editorShell.SetBackgroundColor(""); contentWindow.focus();}
contentWindow.focus();
gContentWindow.focus();
function EditorRemoveLinks(){ editorShell.RemoveTextProperty("href", ""); contentWindow.focus();}
dump("NOT IMPLEMENTED YET\n");
editorShell.RemoveTextProperty("a", "");
function EditorRemoveLinks(){ dump("NOT IMPLEMENTED YET\n"); contentWindow.focus();}
window.focus();
function EditorRemoveStyle(styleName){ if (appCore) { dump("Removing Style\n"); appCore.removeTextProperty(styleName, null); }}
{ if (appCore) { dump("Removing Style\n"); appCore.removeTextProperty(styleName, null); }
{ if (appCore) { dump("Removing Style\n"); appCore.removeTextProperty(styleName, null);
function EditorRemoveStyle(styleName) { if (appCore) { dump("Removing Style\n"); appCore.removeTextProperty(styleName, null); } }
}
function EditorRemoveStyle(styleName) { if (appCore) { dump("Removing Style\n"); appCore.removeTextProperty(styleName, null); } }
contentWindow.focus();
gContentWindow.focus();
function EditorRemoveTextColor(ColorWellID){ if (ColorWellID) { var menupopup = document.getElementById("TextColorPopup"); if (menupopup) menupopup.closePopup(); } //TODO: Set colorwell to browser's default color editorShell.SetTextProperty("font", "color", ""); contentWindow.focus();}
contentWindow.focus();
window.content.focus();
function EditorRunLog(){ var fs; fs = EditorGetScriptFileSpec(); EditorExecuteScript(fs); contentWindow.focus();}
dump("In EditorSave...\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { appCore.save(); }
appCore.save();
function EditorSave() { dump("In EditorSave...\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { appCore.save(); } }
}
function EditorSave() { dump("In EditorSave...\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { appCore.save(); } }
dump("In EditorSave...\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { appCore.saveAs(); }
appCore.saveAs();
function EditorSaveAs() { dump("In EditorSave...\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { appCore.saveAs(); } }
}
function EditorSaveAs() { dump("In EditorSave...\n"); appCore = XPAppCoresManager.Find(editorName); if (appCore) { appCore.saveAs(); } }
{ if (appCore) { dump("Selecting all\n"); appCore.selectAll(); }
{ if (appCore) { dump("Selecting all\n"); appCore.selectAll();
function EditorSelectAll() { if (appCore) { dump("Selecting all\n"); appCore.selectAll(); } }
}
function EditorSelectAll() { if (appCore) { dump("Selecting all\n"); appCore.selectAll(); } }
contentWindow.focus();
gContentWindow.focus();
function EditorSelectBackColor(ColorPickerID, ColorWellID){ var color = getColorAndSetColorWell(ColorPickerID, ColorWellID);dump("EditorSelectBackColor: "+color+"\n"); // Close appropriate menupopup var menupopup; if (ColorPickerID == "menuBackCP") menupopup = document.getElementById("formatMenuPopup"); else ...
var commandNode;
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...
var commandNode = document.getElementById("cmd_fontColor");
commandNode = document.getElementById("cmd_fontColor");
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...
var commandNode;
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...
contentWindow.focus();
gContentWindow.focus();
function EditorSelectTextColor(ColorPickerID, ColorWellID){ var color = getColorAndSetColorWell(ColorPickerID, ColorWellID);// dump("EditorSelectTextColor: "+color+"\n"); // Close appropriate menupopup var menupopup; if (ColorPickerID == "menuTextCP") menupopup = document.getElementById("formatMenuPopup"); el...
window._content.focus();
function editorSendPage(){ var docModified = editorShell.documentModified; var pageUrl = window.editorShell.editorDocument.location; if (pageUrl != "about:blank" && !docModified) { var pageTitle = window.editorShell.editorDocument.title; window.openDialog("chrome://messenger/content/messengercompose/messenger...
contentWindow.focus();
gContentWindow.focus();
function EditorSetBackgroundColor(color){ editorShell.SetBackgroundColor(color); contentWindow.focus();}
{
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...
}
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...
var nodelist = domdoc.getElementsByTagName("meta"); if ( nodelist )
var prefAuthorString = prefs.CopyCharPref("editor.author"); if ( prefAuthorString && prefAuthorString != 0)
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...
var found = false; var node = 0; var listlength = nodelist.length;
var nodelist = domdoc.getElementsByTagName("meta"); if ( nodelist ) { var found = false; var node = 0; var listlength = nodelist.length;
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...
dump("meta nodelist length is "+listlength+"\n"); for (var i = 0; i < listlength && !found; i++) { node = nodelist.item(i); if ( node )
for (var i = 0; i < listlength && !found; i++)
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...
var value = node.getAttribute("name"); if (value == "author")
node = nodelist.item(i); if ( node )
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...
found = true;
var value = node.getAttribute("name"); if (value == "author") { found = true; }
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...
if ( !found ) { dump("no meta tag for author found\n"); var element = domdoc.createElement("meta"); if ( element )
if ( !found )
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...
AddAttrToElem(domdoc, "name", "Author", element); AddAttrToElem(domdoc, "content", prefs.CopyCharPref("editor.author"), element);
var element = domdoc.createElement("meta"); if ( element ) { AddAttrToElem(domdoc, "name", "Author", element); AddAttrToElem(domdoc, "content", prefs.CopyCharPref("editor.author"), element);
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...
var headelement = 0; var headnodelist = domdoc.getElementsByTagName("head"); if (headnodelist) { var sz = headnodelist.length; if ( sz >= 1 )
var headelement = 0; var headnodelist = domdoc.getElementsByTagName("head"); if (headnodelist)
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...
dump("nodelist is "+sz+" long for head, getting 0\n"); headelement = headnodelist.item(0);
var sz = headnodelist.length; if ( sz >= 1 ) { headelement = headnodelist.item(0); }
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...
else dump("nodelist is 0 long for head\n");
if ( headelement ) { headelement.appendChild( element ); }
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...
else dump("no headlist retrieved from domdoc\n"); if ( headelement ) { headelement.appendChild( element ); }
element = domdoc.createComment("");
function EditorSetDefaultPrefs(){ /* only set defaults for new documents */ var url = document.getElementById("args").getAttribute("value"); if ( url != "about:blank" ) return; var domdoc; try { domdoc = window.editorShell.editorDocument; } catch (e) { dump( e + "\n"); } if ( !domdoc ) { return; } // try...