rem: return '<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + but[3] + '\', ' + (but.length > 4 ? but[4] : false) + (but.length > 5 ? ', \'' + but[5] + '\'' : '') + ')" onmousedown="return false;"><img id="{$editor_id}_' + but[0] +'" src="{$themeurl}/images/spacer.gif" style="background-image:url({$themeurl}/images/buttons.gif); background-position: ' + (0-(x*20)) + 'px 0px" title="' + but[2] + '" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>'; 
add: var cmd = 'tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + but[3] + '\',' + (but.length > 4 ? but[4] : false) + (but.length > 5 ? ',\'' + but[5] + '\'' : '') + ')'; return '<a href="javascript:' + cmd + '" onclick="' + cmd + ';return false;" onmousedown="return false;" target="_self"><img id="{$editor_id}_' + but[0] +'" src="{$themeurl}/images/spacer.gif" style="background-image:url({$themeurl}/images/buttons.gif); background-position: ' + (0-(x*20)) + 'px 0px" title="' + but[2] + '" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>'; 
context: function TinyMCE_advanced_getControlHTML(button_name){	var buttonTileMap = new Array('anchor.gif','backcolor.gif','bullist.gif','center.gif',											'charmap.gif','cleanup.gif','code.gif','copy.gif','custom_1.gif',											'cut.gif','forecolor.gif','full.gif','help.gif','hr.gif',											'image.gif','indent.gif','left.gif','link.gif','numlist.gif',											'outdent.gif','paste.gif','redo.gif','removeformat.gif',											'right.gif','strikethrough.gif','sub.gif','sup.gif','undo.gif',											'unlink.gif','visualaid.gif');	// 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)		{			// Check for it in tilemap			if (tinyMCE.settings['button_tile_map'])			{				for (var x=0; !tinyMCE.isMSIE && x<buttonTileMap.length; x++)				{					if (buttonTileMap[x] == but[1])					{						return '<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + but[3] + '\', ' + (but.length > 4 ? but[4] : false) + (but.length > 5 ? ', \'' + but[5] + '\'' : '') + ')" onmousedown="return false;"><img id="{$editor_id}_' + but[0] +'" src="{$themeurl}/images/spacer.gif" style="background-image:url({$themeurl}/images/buttons.gif); background-position: ' + (0-(x*20)) + 'px 0px" title="' + but[2] + '" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" /></a>';					}				}			}			// Old style			return '<a href="javascript:tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + but[3] + '\', ' + (but.length > 4 ? but[4] : false) + (but.length > 5 ? ', \'' + but[5] + '\'' : '') + ')" onmousedown="return false;"><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\');" /></a>';		}	}	// Custom controlls other than buttons	switch (button_name)	{		case "formatselect":			var html = '<select id="{$editor_id}_formatSelect" name="{$editor_id}_formatSelect" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" 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}']			];			html += '<option value="">{$lang_theme_block}</option>';			// Build format select			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>';			//formatselect		return html;		case "styleselect":			//styleselect		return '<select id="{$editor_id}_styleSelect" onmousedown="TinyMCE_advanced_setupCSSClasses(\'{$editor_id}\');" name="{$editor_id}_styleSelect" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceSetCSSClass\',false,this.options[this.selectedIndex].value);" class="mceSelectList">{$style_select_options}</select>';		case "fontselect":			var fontHTML = '<select id="{$editor_id}_fontNameSelect" name="{$editor_id}_fontNameSelect" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'FontName\',false,this.options[this.selectedIndex].value);" class="mceSelectList"><option value="">{$lang_theme_fontdefault}</option>';			var iFonts = 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings';			var nFonts = 'Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sand;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats';			var fonts = tinyMCE.getParam("theme_advanced_fonts", nFonts).split(';');			for (var i=0; i<fonts.length; i++) {				if (fonts[i] != '') {					var parts = fonts[i].split('=');					fontHTML += '<option value="' + parts[1] + '">' + parts[0] + '</option>';				}			}			fontHTML += '</select>';			return fontHTML;		case "fontsizeselect":			//fontsizeselect		return '<select id="{$editor_id}_fontSizeSelect" name="{$editor_id}_fontSizeSelect" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'FontSize\',false,this.options[this.selectedIndex].value);" class="mceSelectList">\		<option value="0">{$lang_theme_font_size}</option>\		<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 "|":		case "separator":		return '<img src="{$themeurl}/images/spacer.gif" width="1" height="15" class="mceSeparatorLine">';		case "spacer":		return '<img src="{$themeurl}/images/spacer.gif" width="1" height="15" border="0" class="mceSeparatorLine" style="vertical-align: middle" />';		case "rowseparator":		return '<br />';	}	return "";}
meta: 7254	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7254/3a0491c6e1cc2c28f525f33857575d25ceb19d55/editor_template_src.js/clean/wp-includes/js/tinymce/themes/advanced/editor_template_src.js