rem: var buttonNamesRow3 = tinyMCE.getParam("theme_advanced_buttons3", "table,separator,row_before,row_after,delete_row,separator,col_before,col_after,delete_col,separator,hr,removeformat,visualaid,separator,sub,sup,separator,charmap").split(','); buttonNamesRow3 = removeFromArray(buttonNamesRow3, tinyMCE.getParam("theme_advanced_disable", "").split(',')); buttonNamesRow3 = addToArray(buttonNamesRow3, tinyMCE.getParam("theme_advanced_buttons3_add", "").split(',')); 
add: var buttonNamesRow3 = tinyMCE.getParam("theme_advanced_buttons3", "table,separator,row_before,row_after,delete_row,separator,col_before,col_after,delete_col,separator,hr,removeformat,visualaid,separator,sub,sup,separator,charmap", true, ','); buttonNamesRow3 = removeFromArray(buttonNamesRow3, tinyMCE.getParam("theme_advanced_disable", "", true, ',')); buttonNamesRow3 = addToArray(buttonNamesRow3, tinyMCE.getParam("theme_advanced_buttons3_add", "", true, ',')); 
context: function TinyMCE_advanced_getEditorTemplate(settings) {	function removeFromArray(in_array, remove_array) {		var outArray = new Array();		for (var i=0; i<in_array.length; i++) {			skip = false;			for (var j=0; j<remove_array.length; j++) {				if (in_array[i] == remove_array[j])					skip = true;			}			if (!skip)				outArray[outArray.length] = in_array[i];		}		return outArray; 	}	function addToArray(in_array, add_array) {		for (var i=0; i<add_array.length; i++)			in_array[in_array.length] = add_array[i];		return in_array; 	}	var template = new Array();	var toolbarHTML = "";	var toolbarLocation = tinyMCE.getParam("theme_advanced_toolbar_location", "bottom");	// Render row 1	var buttonNamesRow1 = tinyMCE.getParam("theme_advanced_buttons1", "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect").split(',');	buttonNamesRow1 = removeFromArray(buttonNamesRow1, tinyMCE.getParam("theme_advanced_disable", "").split(','));	buttonNamesRow1 = addToArray(buttonNamesRow1, tinyMCE.getParam("theme_advanced_buttons1_add", "").split(','));	for (var i=0; i<buttonNamesRow1.length; i++)		toolbarHTML += tinyMCE.getControlHTML(buttonNamesRow1[i]);	if (buttonNamesRow1.length > 0)		toolbarHTML += "<br>";	// Render row 2	var buttonNamesRow2 = tinyMCE.getParam("theme_advanced_buttons2", "bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,help,code").split(',');	buttonNamesRow2 = removeFromArray(buttonNamesRow2, tinyMCE.getParam("theme_advanced_disable", "").split(','));	buttonNamesRow2 = addToArray(buttonNamesRow2, tinyMCE.getParam("theme_advanced_buttons2_add", "").split(','));	for (var i=0; i<buttonNamesRow2.length; i++)		toolbarHTML += tinyMCE.getControlHTML(buttonNamesRow2[i]);	if (buttonNamesRow2.length > 0)		toolbarHTML += "<br>";	// Render row 3	var buttonNamesRow3 = tinyMCE.getParam("theme_advanced_buttons3", "table,separator,row_before,row_after,delete_row,separator,col_before,col_after,delete_col,separator,hr,removeformat,visualaid,separator,sub,sup,separator,charmap").split(',');	buttonNamesRow3 = removeFromArray(buttonNamesRow3, tinyMCE.getParam("theme_advanced_disable", "").split(','));	buttonNamesRow3 = addToArray(buttonNamesRow3, tinyMCE.getParam("theme_advanced_buttons3_add", "").split(','));	for (var i=0; i<buttonNamesRow3.length; i++)		toolbarHTML += tinyMCE.getControlHTML(buttonNamesRow3[i]);	// Setup template html	template['html'] = '<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}">';	if (toolbarLocation == "top")		template['html'] += '<tr><td class="mceToolbarTop" align="center" height="1">' + toolbarHTML + '</td></tr>';/*	template['html'] += '<tr><td align="center">\		<iframe id="{$editor_id}" class="mceEditorArea" border="1" frameborder="0" src="{$default_document}" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" style="width:{$area_width};height:{$area_height}" width="{$area_width}" height="{$area_height}"></iframe>\		</td></tr>';*/	template['html'] += '<tr><td align="center">\		<span id="{$editor_id}"></span>\		</td></tr>';	if (toolbarLocation == "bottom")		template['html'] += '<tr><td class="mceToolbarBottom" align="center" height="1">' + toolbarHTML + '</td></tr>';	template['html'] += '</table>';	// Setup style select options	var styleSelectHTML = '<option value="">-- {$lang_theme_style_select} --</option>';	if (settings['theme_advanced_styles']) {		var stylesAr = settings['theme_advanced_styles'].split(';');		for (var i=0; i<stylesAr.length; i++) {			var key, value;			key = stylesAr[i].split('=')[0];			value = stylesAr[i].split('=')[1];			styleSelectHTML += '<option value="' + value + '">' + key + '</option>';		}		TinyMCE_advanced_autoImportCSSClasses = false;	}	template['html'] = tinyMCE.replaceVar(template['html'], 'style_select_options', styleSelectHTML);	template['delta_width'] = 0;	template['delta_height'] = -40;	return template;}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/873ce1c62e52365d732f67421272ae1302559b15/editor_template_src.js/clean/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js