rem: var t = document.getElementById(tab); var inputs = t.getElementsByTagName('input'); for (i = 0; i < inputs.length;i++) { editor = FCKeditorAPI.GetInstance(inputs[i].name); if (editor && editor.EditorDocument && editor.EditMode == FCK_EDITMODE_WYSIWYG) { editor.SwitchEditMode(); editor.SwitchEditMode(); break; } 
add: try { var t = document.getElementById(tab); var inputs = t.getElementsByTagName('input'); for (i = 0; i < inputs.length;i++) { editor = FCKeditorAPI.GetInstance(inputs[i].name); if (editor && editor.EditorDocument && editor.EditMode == FCK_EDITMODE_WYSIWYG) { editor.SwitchEditMode(); editor.SwitchEditMode(); break; } } 
context: function activate_tab(tab,all_tabs,name){	var tabs = all_tabs.split('|');	var parts = tab.split('.');	var last_part = parts.length-1;		for (n = 0; n < tabs.length; n++)	{		var t = tabs[n];		if (t.indexOf('.') < 0 && parts.length > 1) 		{			parts[last_part] = t;			t = parts.join('.');		}		document.getElementById(t).style.display = t == tab ? 'inline' : 'none';		document.getElementById(t+'-tab').className = 'etemplate_tab'+(t == tab ? '_active th' : ' row_on');	}	// activate FCK in newly activated tab for Gecko browsers	if (!document.all)	{		var t = document.getElementById(tab);		var inputs = t.getElementsByTagName('input');		for (i = 0; i < inputs.length;i++) {	    	editor = FCKeditorAPI.GetInstance(inputs[i].name);	    	if (editor && editor.EditorDocument && editor.EditMode == FCK_EDITMODE_WYSIWYG) {	    		editor.SwitchEditMode();	      		editor.SwitchEditMode();	      		break;	    	}		}	}	if (name) {		set_element(document.eTemplate,name,tab);	}}
meta: 5631	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5631/ba7dbfc0baf4a8a249e66accd0fd87c2ec0970b8/etemplate.js/clean/js/etemplate.js