rem: for (var x=0; x<buttonTileMap.length; x++) { 
add: for (var x=0; !tinyMCE.isMSIE && x<buttonTileMap.length; x++) { 
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			for (var x=0; x<buttonTileMap.length; x++) {				if (buttonTileMap[x] == but[1])					return '<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\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'' + but[3] + '\', ' + (but.length > 4 ? but[4] : false) + (but.length > 5 ? ', \'' + but[5] + '\'' : '') + ')">';			}			// Old style			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":			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}']			];			// 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>';			return html;		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="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: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/914f29b169169eaf678616905b5062afd73de30a/editor_template_src.js/buggy/www/extras/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js