add:   if (tinyMCE.settings['auto_focus']) { window.setTimeout(function () { var inst = tinyMCE.getInstanceById(tinyMCE.settings['auto_focus']); inst.selectNode(inst.getBody(), true, true); inst.contentWindow.focus(); }, 10); }   if (tinyMCE.settings['oninit']) eval(tinyMCE.settings['oninit']); 
context: function TinyMCE_onLoad() {	var elementRefAr = new Array();	// Add submit triggers	if (document.forms && tinyMCE.settings['add_form_submit_trigger']) {		for (var i=0; i<document.forms.length; i++) {			var form = document.forms[i];			tinyMCE.addEvent(form, "submit", TinyMCE_handleEvent);			tinyMCE.addEvent(form, "reset", TinyMCE_handleEvent);		}	}	// Add editor instances based on mode	switch (tinyMCE.settings['mode']) {		case "exact":			var elements = tinyMCE.getParam('elements', '', true, ',');			for (var i=0; i<elements.length; i++) {				var element = tinyMCE._getElementById(elements[i]);				if (tinyMCE.settings['ask'] && element) {					elementRefAr[elementRefAr.length] = element;					continue;				}				if (element)					tinyMCE.addMCEControl(element, elements[i], tinyMCE.createMCEControl(tinyMCE.settings));				else					alert("Error: Could not find element by id or name: " + elements[i]);			}		break;		case "specific_textareas":		case "textareas":			var nodeList = document.getElementsByTagName("textarea");			for (var i=0; i<nodeList.length; i++) {				if (tinyMCE.settings['mode'] != "specific_textareas" || nodeList.item(i).getAttribute(tinyMCE.settings['textarea_trigger']) == "true")					elementRefAr[elementRefAr.length] = nodeList.item(i);			}		break;	}	for (var i=0; i<elementRefAr.length; i++) {		var element = elementRefAr[i];		var elementId = element.name ? element.name : element.id;		if (tinyMCE.settings['ask'])			tinyMCE.addEvent(element, "focus", TinyMCE_confirmAdd);		else			tinyMCE.addMCEControl(element, elementId, tinyMCE.createMCEControl(tinyMCE.settings));	}}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/914f29b169169eaf678616905b5062afd73de30a/tiny_mce_src.js/buggy/www/extras/tinymce/jscripts/tiny_mce/tiny_mce_src.js