rem: var content = BX_range.toString(); BX_range.extractContents();  var element = BX_xml.createElementNS("http: var frag = BX_range.extractContents(); element.appendChild(frag); var new_node = BX_insertContent(element); BX_range.selectNode(new_node); 
add: var tags = new Array("bold","emphasis","emphasize","subscript","superscript","ulink"); var docFrag = BX_deleteTagsWithName(tags); 
context: function BX_plain(){    BX_get_selection();    BX_undo_save();    var content = BX_range.toString();    BX_range.extractContents();    //create a temporary elemen    var element = BX_xml.createElementNS("http://www.w3.org/1999/xhtml","span");    var frag = BX_range.extractContents();    element.appendChild(frag);    var new_node = BX_insertContent(element);    BX_range.selectNode(new_node);    while (BX_range.startContainer.nodeName=="bold" || BX_range.startContainer.nodeName=="emphasis" ||            BX_range.startContainer.nodeName=="emphasize" ||            BX_range.startContainer.nodeName=="ulink" ||            BX_range.startContainer.nodeName=="subscript" ||            BX_range.startContainer.nodeName=="superscript"          )    {        //split the stuff        BX_splitNode();    }    var bla = 	BX_range.createContextualFragment(content);    BX_insertContent(bla);    BX_selection.collapse(BX_selection.focusNode, BX_selection.focusOffset );    BX_transform();}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js