Telerik RadEditor provides a client-side object of type RadEditor.
You can get a reference to the editor using GetRadEditor ("<%RadEditor1.ClientID%>"). The following code demonstrates this:
| ASPX/ASCX |
Copy Code |
|
<rad:RadEditor id="RadEditor1" Runat="server"></rad:RadEditor>
<script type="text/javascript"> var editor = GetRadEditor ("<%=RadEditor1.ClientID%>"); alert(editor.Id); //returns RadEditor Client ID </script> |
Having the client-side RadEditor object, you can access its public methods.
See Also