rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
dwrErrorHandler = handler; | dwrDeprecated(); DWREngine.setErrorHandler(handler); | function dwrSetErrorHandler(handler){ dwrErrorHandler = handler;} |
dwrPostHook = handler; | dwrDeprecated(); DWREngine.setPostHook(handler); | function dwrSetPostHook(handler){ dwrPostHook = handler;} |
dwrPreHook = handler; | dwrDeprecated(); DWREngine.setPreHook(handler); | function dwrSetPreHook(handler){ dwrPreHook = handler;} |
try | function dwrStateChange(call){ if (call.req.readyState == 4) { try { if (call.req.status == 200) { eval(call.req.responseText); } else { dwrHandleError(call.id, call.req.responseText); } } c... | |
catch (ex) | function dwrStateChange(call){ if (call.req.readyState == 4) { try { if (call.req.status == 200) { eval(call.req.responseText); } else { dwrHandleError(call.id, call.req.responseText); } } c... | |
dwrHandleError(call.id, ex); | function dwrStateChange(call){ if (call.req.readyState == 4) { try { if (call.req.status == 200) { eval(call.req.responseText); } else { dwrHandleError(call.id, call.req.responseText); } } c... | |
if (call.req.status == 200) | try | function dwrStateChange(call){ if (call.req.readyState == 4) { if (call.req.status == 200) { eval(call.req.responseText); } else { dwrHandleError(call.id, call.req.responseText); } }} |
eval(call.req.responseText); | if (call.req.status == 200) { eval(call.req.responseText); } else { dwrHandleError(call.id, call.req.responseText); } | function dwrStateChange(call){ if (call.req.readyState == 4) { if (call.req.status == 200) { eval(call.req.responseText); } else { dwrHandleError(call.id, call.req.responseText); } }} |
else | catch (ex) | function dwrStateChange(call){ if (call.req.readyState == 4) { if (call.req.status == 200) { eval(call.req.responseText); } else { dwrHandleError(call.id, call.req.responseText); } }} |
dwrHandleError(call.id, call.req.responseText); | dwrHandleError(call.id, ex); | function dwrStateChange(call){ if (call.req.readyState == 4) { if (call.req.status == 200) { eval(call.req.responseText); } else { dwrHandleError(call.id, call.req.responseText); } }} |
each: function( fn ) { | each: function( fn, args ) { | each: function( fn ) { // Iterate through all of the matched elements for ( var i = 0; i < this.length; i++ ) // Execute the function within the context of each element fn.apply( this[i], [i] ); return this; }, |
fn.apply( this[i], [i] ); | fn.apply( this[i], args || [i] ); | each: function( fn ) { // Iterate through all of the matched elements for ( var i = 0; i < this.length; i++ ) // Execute the function within the context of each element fn.apply( this[i], [i] ); return this; }, |
for ( var i = 0; i < this.size(); i++ ) $.apply( this.get(i), f, [i] ); return this; }, | for ( var i = 0; i < this.size(); i++ ) f.apply( this.get(i), [i] ); return this; }, | each: function(f) { for ( var i = 0; i < this.size(); i++ ) $.apply( this.get(i), f, [i] ); return this; }, |
rv = ch.charCodeAt().toString(16); | var rv = ch.charCodeAt().toString(16); | function ecmaEscape(str){ function replaceNonPrintables(ch) { rv = ch.charCodeAt().toString(16); if (rv.length == 1) rv = "0" + rv; else if (rv.length == 3) rv = "u0" + rv; else if (rv.length == 4) rv = "u" + rv; return "%" + rv; }; /... |
var rv; | function ecmaUnescape(str){ function replaceEscapes(seq) { var ary = seq.match(/([\da-f]{1,2})(.*)|u([\da-f]{1,4})/); if (!ary) return "<ERROR>"; if (ary[1]) { // two digit escape, possibly with cruft after rv = String.fromCharCode(parseInt(ary[1], 16))... | |
var selArray = resultsTree.getElementsByAttribute('selected', 'true'); | function EditCard(){ var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService(); rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); var resultsTree = document.getElementById('resultsTree'); var selArray = resultsTree.getElementsByAttribute('selected', 'true'); if ( selArray && selArra... | |
if ( selArray && selArray.length == 1 ) | if ( resultsTree.selectedItems && resultsTree.selectedItems.length == 1 ) | function EditCard(){ var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService(); rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); var resultsTree = document.getElementById('resultsTree'); var selArray = resultsTree.getElementsByAttribute('selected', 'true'); if ( selArray && selArra... |
var uri = selArray[0].getAttribute('id'); | var uri = resultsTree.selectedItems[0].getAttribute('id'); | function EditCard(){ var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService(); rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); var resultsTree = document.getElementById('resultsTree'); var selArray = resultsTree.getElementsByAttribute('selected', 'true'); if ( selArray && selArra... |
SetCardValues(gEditCard.card, document); | CheckAndSetCardValues(gEditCard.card, document, false); | function EditCardOKButton(){ // See if this card is in any mailing list // if so then we need to update the addresslists of those mailing lists var index = -1; var directory = GetDirectoryFromURI(gEditCard.abURI); // if the directory is a mailing list we need to search all the mailing lists // in the parent direc... |
window.setCursor( "wait" ); | function editEvent( calendarEvent ){ // set up a bunch of args to pass to the dialog var args = new Object(); args.mode = "edit"; args.onOk = self.modifyEventDialogResponse; args.calendarEvent = calendarEvent; // open the dialog modally openDialog("chrome://calendar/content/calendarEventD... | |
window.setCursor( "wait" ); | function editNewEvent( calendarEvent, server ){ // set up a bunch of args to pass to the dialog var args = new Object(); args.mode = "new"; args.onOk = self.addEventDialogResponse; args.calendarEvent = calendarEvent; if( server ) args.server = server; // open the dialog modally openDialog("chro... | |
contentWindow.focus(); | function EditorAlign(align){ dump("aligning\n"); window.editorShell.Align(align);} | |
window.content.focus(); | window._content.focus(); | function EditorApplyStyle(tagName){ editorShell.SetTextProperty(tagName, "", ""); window.content.focus();} |
if (IsWebComposer() && event.target && IsHTMLEditor() && gEditorDisplayMode == kDisplayModeAllTags) | if (IsWebComposer() && event.explicitOriginalTarget && IsHTMLEditor() && gEditorDisplayMode == kDisplayModeAllTags) | function EditorClick(event){ if (!event) return; if (event.detail == 2) { EditorDblClick(event); return; } // For Web Composer: In Show All Tags Mode, // single click selects entire element, // except for body and table elements if (IsWebComposer() && event.target && IsHTMLEditor() && gEditorDisplayMo... |
var element = event.target.QueryInterface( Components.interfaces.nsIDOMElement); | var element = event.explicitOriginalTarget.QueryInterface( Components.interfaces.nsIDOMElement); | function EditorClick(event){ if (!event) return; if (event.detail == 2) { EditorDblClick(event); return; } // For Web Composer: In Show All Tags Mode, // single click selects entire element, // except for body and table elements if (IsWebComposer() && event.target && IsHTMLEditor() && gEditorDisplayMo... |
GetCurrentEditor().selectElement(event.target); | GetCurrentEditor().selectElement(event.explicitOriginalTarget); | function EditorClick(event){ if (!event) return; if (event.detail == 2) { EditorDblClick(event); return; } // For Web Composer: In Show All Tags Mode, // single click selects entire element, // except for body and table elements if (IsWebComposer() && event.target && IsHTMLEditor() && gEditorDisplayMo... |
contentWindow.focus(); | function EditorCopy(){ window.editorShell.Copy();} | |
contentWindow.focus(); | function EditorCut(){ window.editorShell.Cut();} | |
if (event.target) | if (event.explicitOriginalTarget) | 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... |
element = event.target.QueryInterface(Components.interfaces.nsIDOMElement); | element = event.explicitOriginalTarget.QueryInterface( Components.interfaces.nsIDOMElement); | 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... |
dump(outputHTML + "\n"); | function EditorDumpContent(){ if (window.editorShell) { dump("============== Content Tree: ================\n"); window.editorShell.DumpContentTree(); dump(outputHTML + "\n"); }} | |
inputStream.init(theFile, 1, 0); | inputStream.init(theFile, 1, 0, false); | function EditorExecuteScript(theFile){ var inputStream = Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(); inputStream = inputStream.QueryInterface(Components.interfaces.nsIFileInputStream); inputStream.init(theFile, 1, 0); // open read only var scriptableInputStream = Components... |
window.editorShell.exit(); | window.editorShell.Exit(); | function EditorExit(){ if (window.editorShell) { dump("Exiting\n"); window.editorShell.exit(); }} |
var haveProps = IsMenuItemShowing("objectProperties_cm"); | var haveProps = IsMenuItemShowing("objectProperties_cm") || IsMenuItemShowing("menu_saveImage_cm") | 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... |
dump("haveStyle = "+haveStyle+", "+haveProps+", inCell"+inCell+"\n"); | 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... | |
contentWindow.focus(); | function EditorFind(){ window.editorShell.Find();} | |
var outputHTML = editorShell.GetContentsAs("text/html", 0); | var outputHTML = editorShell.GetContentsAs("text/html", 256); | function EditorGetHTML(){ if (editorShell) { dump("Getting HTML\n"); var outputHTML = editorShell.GetContentsAs("text/html", 0); dump(outputHTML + "\n"); }} |
var fs = Components.classes["component: | var fs = Components.classes["@mozilla.org/filespec;1"].createInstance(); | function EditorGetScriptFileSpec(){ var fs = Components.classes["component://netscape/filespec"].createInstance(); fs = fs.QueryInterface(Components.interfaces.nsIFileSpec); fs.unixStyleFilePath = "journal.js"; return fs;} |
*/ | function EditorInitEditMenu(){ // Fake the keybinding hint for the "Clear" item // (Don't bother for Mac?) if (!gIsMac) document.getElementById("menu_clear").setAttribute("acceltext", GetString("Del")); //TODO: We should modify the Paste menuitem to build a submenu // with multiple paste format types} | |
case 'IMG': | case 'img': | 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 = GetString("ObjectProperties"); if (ele... |
case 'HR': | case 'hr': | 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 = GetString("ObjectProperties"); if (ele... |
case 'TABLE': | case 'table': | 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 = GetString("ObjectProperties"); if (ele... |
case 'TD': | case 'td': | 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 = GetString("ObjectProperties"); if (ele... |
case 'A': if(element.href) | case 'a': if (element.name) objStr = GetString("NamedAnchor"); else if(element.href) | 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 = GetString("ObjectProperties"); if (ele... |
else if (element.name) objStr = GetString("NamedAnchor"); | 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 = GetString("ObjectProperties"); if (ele... | |
if (editorShell.GetFirstSelectedCell()) | var tagNameObj = new Object; var countObj = new Object; if (window.editorShell.GetSelectedOrParentTableElement(tagNameObj, countObj) && countObj.value > 1) | 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; if (editorShell.G... |
if (window.editorShell) { dump("Image Properties Dialog starting.\n"); window.openDialog("chrome: } | dump("Image Properties Dialog starting.\n"); window.openDialog("chrome: contentWindow.focus(); | function EditorInsertImage(){ if (window.editorShell) { dump("Image Properties Dialog starting.\n"); window.openDialog("chrome://editordlgs/content/EdImageProps.xul", "dlg", "chrome", ""); }} |
contentWindow.focus(); | function EditorInsertList(listType){ dump("Inserting list\n"); window.editorShell.InsertList(listType);} | |
window._content.focus(); | gContentWindow.focus(); | function EditorInsertOrEditTable(insertAllowed){ if (IsInTable()) { // Edit properties of existing table window.openDialog("chrome://editor/content/EdTableProps.xul", "_blank", "chrome,close,titlebar,modal", "","TablePanel"); window._content.focus(); } else if(insertAllowed) { EditorInsertTable(); }} |
EditorInsertTable(); | if (editorShell.editorSelection.isCollapsed) EditorInsertTable(); else goDoCommand("cmd_ConvertToTable"); | function EditorInsertOrEditTable(insertAllowed){ if (IsInTable()) { // Edit properties of existing table window.openDialog("chrome://editor/content/EdTableProps.xul", "_blank", "chrome,close,titlebar,modal", "","TablePanel"); window._content.focus(); } else if(insertAllowed) { EditorInsertTable(); }} |
window.content.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"); window.content.focus(); } else if(insertAllowed) { EditorInsertTable(); }} |
window._content.focus(); | gContentWindow.focus(); | function EditorInsertTable(){ // Insert a new table window.openDialog("chrome://editor/content/EdInsertTable.xul", "_blank", "chrome,close,titlebar,modal", ""); window._content.focus();} |
window.content.focus(); | window._content.focus(); | function EditorInsertTable(){dump("EditorInsertTable\n"); // Insert a new table window.openDialog("chrome://editor/content/EdInsertTable.xul", "_blank", "chrome,close,titlebar,modal", ""); window.content.focus();} |
var found = FindAndSelectEditorWindowWithURL(fp.file.path); | var found = FindAndSelectEditorWindowWithURL(fp.fileURL.spec); | function EditorOpen(){ dump("In EditorOpen..\n"); var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker); fp.init(window, editorShell.GetString("OpenHTMLFile"), nsIFilePicker.modeOpen); // While we include "All", include filters that prefer HTML and Text files fp.setFilters(nsI... |
fp.file.path); | fp.fileURL.spec); | function EditorOpen(){ dump("In EditorOpen..\n"); var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker); fp.init(window, editorShell.GetString("OpenHTMLFile"), nsIFilePicker.modeOpen); // While we include "All", include filters that prefer HTML and Text files fp.setFilters(nsI... |
contentWindow.focus(); | function EditorPaste(){ window.editorShell.Paste();} | |
contentWindow.focus(); | function EditorPasteAsQuotation(){ window.editorShell.PasteAsQuotation();} | |
contentWindow.focus(); | function EditorPasteAsQuotationCited(citeString){ window.editorShell.PasteAsCitedQuotation(CiteString);} | |
if (fileurl != "" && fileurl != "about:blank") { window.openDialog("chrome: | if (fileurl != "" && fileurl != "about:blank") { window.openDialog(getBrowserURL(), | function EditorPreview(){ if (!editorShell.CheckAndSaveDocument(editorShell.GetString("BeforePreview"))) return; fileurl = ""; try { fileurl = window.content.location; } catch (e) { return; } // CheckAndSave doesn't tell us if the user said "Don't Save", // so make sure we have a url: if (fileurl != ""... |
contentWindow.focus(); | function EditorPrint(){ dump("In EditorPrint..\n"); window.editorShell.Print();} | |
contentWindow.focus(); | function EditorPrintPreview(){ window.openDialog("resource:/res/samples/printsetup.html", "PrintPreview", "chrome", "");} | |
contentWindow.focus(); | function EditorRedo(){ dump("Redoing\n"); window.editorShell.Redo();} | |
window.content.focus(); | window._content.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(""); window.content.focus();} |
contentWindow.focus(); | function EditorRemoveLinks(){ dump("NOT IMPLEMENTED YET\n");} | |
window.content.focus(); | window._content.focus(); | function EditorRemoveLinks(){ editorShell.RemoveTextProperty("href", ""); window.content.focus();} |
window.content.focus(); | window._content.focus(); | function EditorRunLog(){ var fs; fs = EditorGetScriptFileSpec(); EditorExecuteScript(fs); window.content.focus();} |
contentWindow.focus(); | function EditorSave(){ dump("In EditorSave...\n"); window.editorShell.Save();} | |
contentWindow.focus(); | function EditorSaveAs(){ dump("In EditorSave...\n"); window.editorShell.SaveAs();} | |
contentWindow.focus(); | function EditorSelectAll(){ window.editorShell.SelectAll();} | |
window.content.focus(); | window._content.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"); e... |
window._content.focus(); | gContentWindow.focus(); | function EditorSelectColor(colorType, mouseEvent){ if (!gColorObj) return; // Shift + mouse click automatically applies last color, if available var useLastColor = mouseEvent ? ( mouseEvent.button == 0 && mouseEvent.shiftKey ) : false; var element; var table; var currentColor = ""; var commandNode; if (!colo... |
window.content.focus(); | window._content.focus(); | function EditorSetBackgroundColor(color){ editorShell.SetBackgroundColor(color); window.content.focus();} |
window.content.focus(); | window._content.focus(); | function EditorSetFontColor(color){ editorShell.SetTextProperty("font", "color", color); window.content.focus();} |
if( fontFace == "tt") { | if( fontFace == "" || fontFace == "normal") { window.editorShell.RemoveTextProperty("font", "face"); } else if( fontFace == "tt") { | function EditorSetFontFace(fontFace){ if( fontFace == "tt") { // The old "teletype" attribute window.editorShell.SetTextProperty("tt", "", ""); // Clear existing font face fontFace = ""; window.editorShell.SetTextProperty("font", "face", fontFace); } contentWindow.focus();} |
fontFace = ""; | window.editorShell.RemoveTextProperty("font", "face"); } else { | function EditorSetFontFace(fontFace){ if( fontFace == "tt") { // The old "teletype" attribute window.editorShell.SetTextProperty("tt", "", ""); // Clear existing font face fontFace = ""; window.editorShell.SetTextProperty("font", "face", fontFace); } contentWindow.focus();} |
window.content.focus(); | window._content.focus(); | function EditorSetFontFace(commandID, fontFace){ dump("Setting font face to " + fontFace + "\n"); var commandNode = document.getElementById(commandID); commandNode.setAttribute("state", fontFace); window.content.focus(); // needed for command dispatch to work goDoCommand(commandID);} |
size === "+0" ) | size == "+0" ) | function EditorSetFontSize(size){ if( size == "0" || size == "normal" || size === "+0" ) { window.editorShell.RemoveTextProperty("font", size); dump("Removing font size\n"); } else { dump("Setting font size\n"); window.editorShell.SetTextProperty("font", "size", size); } contentWindow.focus();} |
window.content.focus(); | window._content.focus(); | function EditorSetParagraphFormat(commandID, paraFormat){ var commandNode = document.getElementById(commandID); commandNode.setAttribute("state", paraFormat); window.content.focus(); // needed for command dispatch to work goDoCommand(commandID);} |
gContentWindow = window._content; | function EditorSharedStartup(){ // set up JS-implemented commands for Text or HTML editing switch (editorShell.editorType) { case "html": case "htmlmail": SetupHTMLEditorCommands(); window.gDefaultSaveMimeType = "text/html"; break; case "text": case "textmail": SetupTe... | |
gContentWindow = window.content; | gContentWindow = window._content; | function EditorSharedStartup(){ // set up JS-implemented commands SetupControllerCommands(); // Just for convenience gContentWindow = window.content; gIsWin = navigator.appVersion.indexOf("Win") != -1; gIsUNIX = (navigator.appVersion.indexOf("X11") || navigator.appVersion.indexOf("nux")) != -1; gIsM... |
window.editorShell.ShowClipboard(); | function EditorShowClipboard(){ dump("In EditorShowClipboard...\n"); window.editorShell.ShowClipboard(); } | |
return editorShell.Shutdown(); | function EditorShutdown(){ dump("In EditorShutdown..\n");} | |
window.content.focus(); | window._content.focus(); | function EditorStartLog(){ var fs; fs = EditorGetScriptFileSpec(); editorShell.StartLogging(fs); window.content.focus(); fs = null;} |
contentWindow = window.frames[0]; | contentWindow = window.content; | function EditorStartup(editorType){ dump("Doing Startup...\n"); contentWindow = window.frames[0]; dump("Trying to make an editor appcore through the component manager...\n"); var editorShell = Components.classes["component://netscape/editor/editorshell"].createInstance(); editorShell = editorShell.QueryInterface(C... |
window.frames[0].focus(); | function EditorStartup(editorType){ dump("Doing Startup...\n"); contentWindow = window.frames[0]; dump("Trying to make an editor appcore through the component manager...\n"); var editorShell = Components.classes["component://netscape/editor/editorshell"].createInstance(); editorShell = editorShell.QueryInterface(C... | |
cmd.setAttribute("collapsed", "true"); | cmd.collapsed = true; | function EditorStartup(){ var is_HTMLEditor = IsHTMLEditor(); if (is_HTMLEditor) { gSourceContentWindow = document.getElementById("content-source"); // XUL elements we use when switching from normal editor to edit source gContentWindowDeck = document.getElementById("ContentWindowDeck"); gFormatToolbar = ... |
gContentWindow = window.content; gSourceContentWindow = document.getElementById("content-source"); | function EditorStartup(editorType, editorElement){ gContentWindow = window.content; gSourceContentWindow = document.getElementById("content-source"); gIsHTMLEditor = (editorType == "html"); if (gIsHTMLEditor) { gEditModeLabel = document.getElementById("EditModeLabel"); gNormalModeButton = document.getE... | |
dump("Edit Mode: "+gNormalModeButton.getAttribute('type')+"\n"); | function EditorStartup(editorType, editorElement){ gContentWindow = window.content; gSourceContentWindow = document.getElementById("content-source"); gIsHTMLEditor = (editorType == "html"); if (gIsHTMLEditor) { gEditModeLabel = document.getElementById("EditModeLabel"); gNormalModeButton = document.getE... | |
gIsWin = navigator.appVersion.indexOf("Win") != -1; gIsUNIX = (navigator.appVersion.indexOf("X11") || navigator.appVersion.indexOf("nux")) != -1; gIsMac = !gIsWin && !gIsUNIX; dump("IsWin="+gIsWin+", IsUNIX="+gIsUNIX+", IsMac="+gIsMac+"\n"); | function EditorStartup(editorType, editorElement){ gContentWindow = window.content; gSourceContentWindow = document.getElementById("content-source"); gIsHTMLEditor = (editorType == "html"); if (gIsHTMLEditor) { gEditModeLabel = document.getElementById("EditModeLabel"); gNormalModeButton = document.getE... | |
editorShell.contentWindow = gContentWindow; | editorShell.contentWindow = window.content; | function EditorStartup(editorType, editorElement){ gContentWindow = window.content; gSourceContentWindow = document.getElementById("content-source"); gIsHTMLEditor = (editorType == "html"); if (gIsHTMLEditor) { gEditModeLabel = document.getElementById("EditModeLabel"); gNormalModeButton = document.getE... |
HideInapplicableUIElements(); SetupControllerCommands(); | function EditorStartup(editorType, editorElement){ gContentWindow = window.content; gSourceContentWindow = document.getElementById("content-source"); gIsHTMLEditor = (editorType == "html"); if (gIsHTMLEditor) { gEditModeLabel = document.getElementById("EditModeLabel"); gNormalModeButton = document.getE... | |
EditorSharedStartup() | function EditorStartup(editorType, editorElement){ gContentWindow = window.content; gSourceContentWindow = document.getElementById("content-source"); gIsHTMLEditor = (editorType == "html"); if (gIsHTMLEditor) { gEditModeLabel = document.getElementById("EditModeLabel"); gNormalModeButton = document.getE... | |
editorShell.contentWindow = window.content; | editorShell.contentWindow = window._content; | function EditorStartup(editorType, editorElement){ gIsHTMLEditor = (editorType == "html"); if (gIsHTMLEditor) { gSourceContentWindow = document.getElementById("content-source"); gEditModeBar = document.getElementById("EditModeToolbar"); gEditModeLabel = document.getElementById("EditModeLabel"); ... |
window.content.focus(); | window._content.focus(); | function EditorStopLog(){ editorShell.StopLogging(); window.content.focus();} |
window._content.focus(); | gContentWindow.focus(); | function EditorTableCellProperties(){ var cell = editorShell.GetElementOrParentByTagName("td", null); if (cell) { // Start Table Properties dialog on the "Cell" panel window.openDialog("chrome://editor/content/EdTableProps.xul", "_blank", "chrome,close,titlebar,modal", "", "CellPanel"); window._content.focus... |
window.content.focus(); | window._content.focus(); | function EditorTableCellProperties(){ var cell = editorShell.GetElementOrParentByTagName("td", null); if (cell) { // Start Table Properties dialog on the "Cell" panel window.openDialog("chrome://editor/content/EdTableProps.xul", "_blank", "chrome,close,titlebar,modal", "", "CellPanel"); window.content.focus(... |
rowSpanObj, colSpanObj, isSelectedObj); | rowSpanObj, colSpanObj, actualRowSpanObj, actualColSpanObj, isSelectedObj); | function EditorTestTableLayout(){ var table = editorShell.GetElementOrParentByTagName("table", null); if (!table) { dump("Enclosing Table not found: Place caret in a table cell to do this test\n\n"); return; } var cell; var startRowIndexObj = new Object(); var startColIndexObj = new Object(); var rowSp... |
dump("Row,Col: "+row+","+col+" StartRow,StartCol: "+startRowIndexObj.value+","+startColIndexObj.value+" RowSpan="+rowSpan+" ColSpan="+colSpan); | dump(" Row="+row+", Col="+col+" StartRow="+startRowIndexObj.value+", StartCol="+startColIndexObj.value+"\n"); dump(" RowSpan="+rowSpan+", ColSpan="+colSpan+" ActualRowSpan="+actualRowSpan+", ActualColSpan="+actualColSpan); | function EditorTestTableLayout(){ var table = editorShell.GetElementOrParentByTagName("table", null); if (!table) { dump("Enclosing Table not found: Place caret in a table cell to do this test\n\n"); return; } var cell; var startRowIndexObj = new Object(); var startColIndexObj = new Object(); var rowSp... |
dump(" *** GetCellDataAt barfed at Row,Col:"+row+","+col+" ***\n\n"); col++; | dump(" *** GetCellDataAt failed at Row="+row+, Col="+col+" ***\n\n"); return; | function EditorTestTableLayout(){ var table = editorShell.GetElementOrParentByTagName("table", null); if (!table) { dump("Enclosing Table not found: Place caret in a table cell to do this test\n\n"); return; } var cell; var startRowIndexObj = new Object(); var startColIndexObj = new Object(); var rowSp... |
dump("Setup for next row\n"); | function EditorTestTableLayout(){ var table = editorShell.GetElementOrParentByTagName("table", null); if (!table) { dump("Enclosing Table not found: Place caret in a table cell to do this test\n\n"); return; } var cell; var startRowIndexObj = new Object(); var startColIndexObj = new Object(); var rowSp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.