Replaces the current content with a new one.
|
function SetHtml (content) |
| content |
string |
The HTML content, that will be set in Telerik RadEditor. |
The example below demonstrates how to clean the content in the content area from a standard input button:
| ASPX/ASCX |
Copy Code |
|
<rad:radEditor id= "RadEditor1" runat= "server"></rad:radEditor> <input type="button" value="reset" onclick="ResetContent()" /> <script type="text/javascript"> function ResetContent() { var editor = <%=RadEditor1.ClientID %>; //get a reference to Telerik RadEditor editor.SetHtml(""); //reset the content } </script> |