I'm using RadControls for ASP.NET AJAX Q2 2009 SP1. I try to use javascript to call some funtion in RadEditor. But some funtion not work.Here my code
RealFontSize command work but FontName command not work. Please help me. Thank!
<script language="javascript" type="text/javascript"> function Execute(command, args) { var o = new Object(); o.get_value = function() { return args; } o.get_commandName = function() { return command; } $find("txtText").fire(command, o); alert(args); } </script> <select size="1" name="cboFont" onchange="return Execute('FontName',this.value)" > <option value="Arial">Arial</option> <option value="Time New Roman">Time New Roman</option> </select> <select size="1" name="cboSize" onchange="return Execute('RealFontSize',this.value)"> <option value="15">15</option> <option value="18">18</option> <option value="20">20</option> </select>