rem: else { var startOffBefore = BX_range.startOffset;  BX_range.insertNodeBX = InsertNodeAtStartOfRange; try{		BX_range.insertNodeBX(content);} catch(e) {};  if (startOffBefore == BX_range.startOffset) { BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1); } BX_range.collapse(false);  }  BX_selection.addRange(BX_range); 
context: function BX_insertContent(content, do_undo_save){    /*    BX_selection.removeAllRanges();*/    try {BX_range.deleteContents();}    catch(e){};    var StartContainer = BX_range.startContainer;    var StartPosition = BX_range.startOffset;    if (typeof(content) == "string")    {        if (content.length == 1)        {            content = document.createTextNode(content);        }        else if (content.indexOf("<") >= 0)        {            content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml");            content = content.childNodes[0];            BX_tmp_r1 = document.createRange();            BX_tmp_r1.selectNodeContents(content);            content = BX_tmp_r1.extractContents();        }        else {            content = document.createTextNode(content);        }        //		BX_range.createContextualFragment(content);    }    var startOffBefore = BX_range.startOffset;    if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE)    {        StartContainer.insertData(StartPosition, content.nodeValue);        if (startOffBefore == BX_range.startOffset)        {            BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1);            BX_range.collapse(false);        }    }    else // if (StartContainer.nodeType == StartContainer.TEXT_NODE)    {        var startOffBefore = BX_range.startOffset;        BX_range.insertNodeBX = InsertNodeAtStartOfRange;        try{		BX_range.insertNodeBX(content);}        catch(e) {};        if (startOffBefore == BX_range.startOffset)        {            BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1);        }        BX_range.collapse(false);    }    BX_selection.addRange(BX_range);    return content;}
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