rem: return '<select id="{$editor_id}_formatSelect" name="{$editor_id}_formatSelect" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'FormatBlock\',false,this.options[this.selectedIndex].value);" class="mceSelectList">\ <option value="<p>">{$lang_theme_paragraph}</option>\ <!-- <option value="<div>">{$lang_theme_div}</option> -->\ <option value="<address>">{$lang_theme_address}</option>\ <option value="<pre>">{$lang_theme_pre}</option>\ <option value="<h1>">{$lang_theme_h1}</option>\ <option value="<h2>">{$lang_theme_h2}</option>\ <option value="<h3>">{$lang_theme_h3}</option>\ <option value="<h4>">{$lang_theme_h4}</option>\ <option value="<h5>">{$lang_theme_h5}</option>\ <option value="<h6>">{$lang_theme_h6}</option>\ </select>'; 
add: var html = '<select id="{$editor_id}_formatSelect" name="{$editor_id}_formatSelect" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'FormatBlock\',false,this.options[this.selectedIndex].value);" class="mceSelectList">'; var formats = tinyMCE.getParam("theme_advanced_blockformats", "p,address,pre,h1,h2,h3,h4,h5,h6", true).split(','); var lookup = [ ['p', '{$lang_theme_paragraph}'], ['address', '{$lang_theme_address}'], ['pre', '{$lang_theme_pre}'], ['h1', '{$lang_theme_h1}'], ['h2', '{$lang_theme_h2}'], ['h3', '{$lang_theme_h3}'], ['h4', '{$lang_theme_h4}'], ['h5', '{$lang_theme_h5}'], ['h6', '{$lang_theme_h6}'] ];   for (var i=0; i<formats.length; i++) { for (var x=0; x<lookup.length; x++) { if (formats[i] == lookup[x][0]) html += '<option value="<' + lookup[x][0] + '>">' + lookup[x][1] + '</option>'; } }  html += '</select>';  return html;  
context: function TinyMCE_advanced_getControlHTML(button_name) {	// Lookup button in button list	for (var i=0; i<TinyMCE_advanced_buttons.length; i++) {		var but = TinyMCE_advanced_buttons[i];		if (but[0] == button_name)			return '<img id="{$editor_id}_' + but[0] + '" src="{$themeurl}/images/' + but[1] + '" title="' + but[2] + '" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + but[3] + '\', ' + (but.length > 4 ? but[4] : false) + (but.length > 5 ? ', \'' + but[5] + '\'' : '') + ')">';	}	// Custom controlls other than buttons	switch (button_name) {		case "formatselect":			return '<select id="{$editor_id}_formatSelect" name="{$editor_id}_formatSelect" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'FormatBlock\',false,this.options[this.selectedIndex].value);" class="mceSelectList">\					<option value="<p>">{$lang_theme_paragraph}</option>\					<!-- <option value="<div>">{$lang_theme_div}</option> -->\					<option value="<address>">{$lang_theme_address}</option>\					<option value="<pre>">{$lang_theme_pre}</option>\					<option value="<h1>">{$lang_theme_h1}</option>\					<option value="<h2>">{$lang_theme_h2}</option>\					<option value="<h3>">{$lang_theme_h3}</option>\					<option value="<h4>">{$lang_theme_h4}</option>\					<option value="<h5>">{$lang_theme_h5}</option>\					<option value="<h6>">{$lang_theme_h6}</option>\					</select>';		case "styleselect":			return '<select id="{$editor_id}_styleSelect" onmousedown="TinyMCE_advanced_setupCSSClasses(\'{$editor_id}\');" name="{$editor_id}_styleSelect" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceSetCSSClass\',false,this.options[this.selectedIndex].value);" class="mceSelectList">{$style_select_options}</select>';		case "fontselect":			return '<select id="{$editor_id}_fontNameSelect" name="{$editor_id}_fontNameSelect" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'FontName\',false,this.options[this.selectedIndex].value);" class="mceSelectList">\					<option value="">{$lang_theme_fontdefault}</option>\					<option value="arial,helvetica,sans-serif">Arial</option>\					<option value="times new roman,times,serif">Times New Roman</option>\					<option value="verdana,arial,helvetica,sans-serif">Verdana</option>\					<option value="courier new,courier,monospace">Courier</option>\					<option value="georgia,times new roman,times,serif">Georgia</option>\					<option value="tahoma,arial,helvetica,sans-serif">Tahoma</option>\					</select>';		case "fontsizeselect":			return '<select id="{$editor_id}_fontSizeSelect" name="{$editor_id}_fontSizeSelect" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'FontSize\',false,this.options[this.selectedIndex].value);" class="mceSelectList">\					<option value="1">1 (8 pt)</option>\					<option value="2">2 (10 pt)</option>\					<option value="3">3 (12 pt)</option>\					<option value="4">4 (14 pt)</option>\					<option value="5">5 (18 pt)</option>\					<option value="6">6 (24 pt)</option>\					<option value="7">7 (36 pt)</option>\					</select>';		case "separator":			return '<img src="{$themeurl}/images/spacer.gif" width="1" height="15" class="mceSeparatorLine">';		case "rowseparator":			return '<br>';	}	return "";}
meta: 1948	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1948/873ce1c62e52365d732f67421272ae1302559b15/editor_template_src.js/clean/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js