rem: savedVal['document'].getElementById(savedVal['element_id']).value = value; 
add: var elm = savedVal['document'].getElementById(savedVal['element_id']); elm.value = value; eval('elm.onchange();'); 
context: function TinyMCE_advanced_execCommand(editor_id, element, command, user_interface, value){	switch (command)	{		case "mceForeColor":			var template = new Array();			var inputColor = TinyMCE_advanced_foreColor;			if (!inputColor)				inputColor = "#000000";			template['file'] = 'color_picker.htm';			template['width'] = 220;			template['height'] = 240;			tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes", command : "forecolor", input_color : inputColor});		return true;		case "mceBackColor":			var template = new Array();			var inputColor = TinyMCE_advanced_foreColor;			if (!inputColor)			{				inputColor = "#000000";			}			template['file'] = 'color_picker.htm';			template['width'] = 210;			template['height'] = 200;			tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes", command : "HiliteColor", input_color : inputColor});			//mceBackColor		return true;		case "mceColorPicker":			if (user_interface) {				var template = new Array();				var inputColor = value['document'].getElementById(value['element_id']).value;				template['file'] = 'color_picker.htm';				template['width'] = 220;				template['height'] = 210;				tinyMCE.lastColorPickerValue = value;				tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes", command : "mceColorPicker", input_color : inputColor});			} else {				var savedVal = tinyMCE.lastColorPickerValue;				savedVal['document'].getElementById(savedVal['element_id']).value = value;			}		return true;		case "mceCodeEditor":			var template = new Array();			template['file'] = 'source_editor.htm';			template['width'] = tinyMCE.getParam("theme_advanced_source_editor_width", 500);			template['height'] = tinyMCE.getParam("theme_advanced_source_editor_height", 400);			tinyMCE.openWindow(template, {editor_id : editor_id, resizable : "yes", scrollbars : "no", inline : "yes"});			//mceCodeEditor		return true;		case "mceCharMap":			var template = new Array();			template['file'] = 'charmap.htm';			template['width'] = 550;			template['height'] = 280;			tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"});			//mceCharMap		return true;		case "mceInsertAnchor":			var template = new Array();			template['file'] = 'anchor.htm';			template['width'] = 320;			template['height'] = 130;			tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes", name : TinyMCE_advanced_anchorName, action : (TinyMCE_advanced_anchorName == "" ? "insert" : "update")});		return true;		case "mceNewDocument":			if (confirm(tinyMCE.getLang('lang_newdocument')))				tinyMCE.execInstanceCommand(editor_id, 'mceSetContent', false, '');			return true;	}	// Default behavior	return false;}
meta: 6462	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6462/d9ca0c10eade99c94067177b2bd565ee8c68c9cb/editor_template_src.js/clean/wp-admin/tinymce/themes/advanced/editor_template_src.js