rem: } 
add: } 
context: function InsertTags(aTag, eTag, parentWindow, param2) {	var input = refreshElement(parentWindow);	setFocus(input);	if (parentWindow == 1) {		var docsel = window.opener.document;	}	else {		var docsel = document;	}	 	if(typeof docsel.selection != 'undefined') {        var range = docsel.selection.createRange();        var insText = range.text;        if (param2 == 1) {        	insText = '';        }        range.text = aTag + insText + eTag;        range = docsel.selection.createRange();        if (insText.length == 0) {          range.move('character', -eTag.length);        } else {          range.moveStart('character', aTag.length + insText.length + eTag.length);              }        range.select();    }    else if(typeof input.selectionStart != 'undefined') {        var start = input.selectionStart;        var end = input.selectionEnd;        var insText = input.value.substring(start, end);        if (param2 == 1) {        	insText = '';        }        input.value = input.value.substr(0, start) + aTag + insText + eTag + input.value.substr(end);        var pos;        if (insText.length == 0) {          pos = start + aTag.length;        } else {          pos = start + aTag.length + insText.length + eTag.length;        }        input.selectionStart = pos;        input.selectionEnd = pos;    }    else {        input.value = input.value + aTag + '' + eTag;    }}
meta: 9569	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9569/a7064f678045c126c1699accb4c1922a76895c9b/editor.js/clean/viscacha/templates/editor.js