context: function onOK(){  // TODO: VALIDATE FIELDS BEFORE COMMITING CHANGES  // Coalesce into one undo transaction  editorShell.BeginBatchChanges();  // Set the HREF directly on the editor document's anchor node  //  or on the newly-created node if insertNew is true//  dump(anchorElement + "\n");  anchorElement.setAttribute("href",dialog.hrefInput.value);  // Get text to use for a new link  if (insertNew) {    // Append the link text as the last child node     //   of the anchor node    dump("Creating text node\n");    textNode = editorShell.editorDocument.createTextNode(dialog.linkTextInput.value);    if (textNode) {      anchorElement.appendChild(textNode);    }    dump("Inserting\n");    editorShell.InsertElement(anchorElement, true);  } else if (insertLinkAroundSelection) {    dump("Setting link around selected text\n");    editorShell.InsertLinkAroundSelection(anchorElement);  }  editorShell.EndBatchChanges();  window.close();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/aaa2213d4c1186061e10c8bb57c1a4a8792f6cc2/EdLinkProps.js/clean/editor/ui/dialogs/content/EdLinkProps.js