This is a migrated thread and some comments may be shown as answers.

how can i get clientside textchaged event for RadEditor?

1 Answer 72 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 14 Oct 2010, 10:13 AM
We are using Telerik 2009.2.701.20 version. We have RadEditor on the screen to enter comments.
Our requirement is that whenever user makes change in this editor, a client side flag should be set to indicate that the editor contents are updated.
So is there any event for rad editor to achieve above functionally?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Oct 2010, 10:30 AM
Hi Alangurajan,

Try the following approach in order to fire client event on changing the text in RadEditor.

aspx:
 
<telerik:radeditor runat="server" ID="RadEditor1" OnClientLoad="OnClientLoad">   
</telerik:radeditor>  

javascript:
 
<script type="text/javascript">            
        function OnClientLoad(editor, args)      
        {                        
           editor.attachEventHandler("onkeydown"function(e)      
           {      
           setTimeout(function(){   
               alert("Content changed! Current content: " + $find("<%=RadEditor1.ClientID %>").get_text()); }, 0);     
           });      
        }      
</script> 

Checkout the following forum link which discussed similar scenario.
Text Changed Client Side Event in RadEditor



-Shinu.
Tags
Editor
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or