Hi,
I am trying to attach onkeypress eventhandler in onclientload of radeditor. I want to check a checkbox as soon as any alphabet is entered in radeditor.
<telerik:RadEditor runat="server" ID="RadEditor1" ContentAreaMode="Div" EditModes="Design"
OnClientLoad="OnClientLoad">
<script type="text/javascript">
function OnClientLoad(editor) {
editor.AttachEventHandler("onkeypress", function (e) {
$('#<%=chktext.ClientID %>').attr('checked', true);
});
}
</script>
i get a javascript error which says UnCaught Reference Error:OnClientLoad is not defined. What should i do?
I am trying to attach onkeypress eventhandler in onclientload of radeditor. I want to check a checkbox as soon as any alphabet is entered in radeditor.
<telerik:RadEditor runat="server" ID="RadEditor1" ContentAreaMode="Div" EditModes="Design"
OnClientLoad="OnClientLoad">
<script type="text/javascript">
function OnClientLoad(editor) {
editor.AttachEventHandler("onkeypress", function (e) {
$('#<%=chktext.ClientID %>').attr('checked', true);
});
}
</script>
i get a javascript error which says UnCaught Reference Error:OnClientLoad is not defined. What should i do?