add: txtarea.selectionStart = selEnd + open.length + close.length; txtarea.selectionEnd = txtarea.selectionStart; txtarea.focus(); txtarea.scrollTop = scrollTop;  
context: function mozWrap(txtarea, open, close){	var selLength = txtarea.textLength;	var selStart = txtarea.selectionStart;	var selEnd = txtarea.selectionEnd;	if (selEnd == 1 || selEnd == 2) 		selEnd = selLength;	var s1 = (txtarea.value).substring(0,selStart);	var s2 = (txtarea.value).substring(selStart, selEnd)	var s3 = (txtarea.value).substring(selEnd, selLength);	txtarea.value = s1 + open + s2 + close + s3;	return;}
meta: 632	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/632/dd9ad539fdab80badedf801a816b8a0beafbbf5c/editor.js/buggy/phpBB/adm/style/editor.js