rem: editorShell.InsertElement(anchorElement, false); 
add: try { editorShell.InsertElementAtSelection(anchorElement, false); } catch (e) { dump("Exception occured in InsertElementAtSelection\n"); } 
context: function onOK(){  if (ValidateData())  {    // Copy attributes to element we are changing or inserting    editorShell.CloneAttributes(anchorElement, globalElement);    if (insertNew) {      // Don't delete selected text when inserting      editorShell.InsertElement(anchorElement, false);    }    return true;  }  return false;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/711c0f72c9655c2558d43bb716847f1a294b8372/EdNamedAnchorProps.js/clean/editor/ui/dialogs/content/EdNamedAnchorProps.js