rem: if( typeof(texte.selectionStart) != 'undefined' ) { 
add: if( typeof(texte.selectionStart) != 'undefined' ) { 
context: function addLinks(evt){	if( evt.target.id == 'addLinks1' )	{		var texte = document.forms['send-form'].elements['body_text'];	}	else	{		var texte = document.forms['send-form'].elements['body_html'];	}		if( typeof(texte.selectionStart) != 'undefined' )	{		var caretPos = (texte.selectionEnd + 7);// 7 = longueur de la chane {LINKS}		var before   = (texte.value).substring(0, texte.selectionStart);		var after    = (texte.value).substring(texte.selectionStart, texte.textLength);		texte.value  = before + '{LINKS}' + after;		texte.setSelectionRange(caretPos, caretPos);	}	else if( typeof(texte.createTextRange) != 'undefined' && texte.caretPos )	{		texte.caretPos.text = '{LINKS}';	}	else	{		texte.value += '{LINKS}\n';	}		texte.focus();}
meta: 7226	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7226/a9cf0c3e130fa641e54697c6bd6253602fac71a5/editor.js/buggy/templates/admin/editor.js