rem:   editorShell.InsertElement(element, head, position, true); 
add: var editor = GetCurrentEditor(); try {   editor.insertElement(element, head, position, true); } catch (e) {} 
context: function AppendHeadElement(element){  var head = GetHeadElement();  if (head)  {    var position = 0;    if (head.hasChildNodes())      position = head.childNodes.length;    // Use editor's undoable transaction    // Last param "true" says "don't change the selection"    editorShell.InsertElement(element, head, position, true);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/a0885fe3052b87d392163c81f32552d543df0f50/EdDialogCommon.js/buggy/editor/ui/dialogs/content/EdDialogCommon.js