Returns the editor content as plain text.
Example:
| ASPX/ASCX |
Copy Code |
|
<rad:radEditor id= "RadEditor1" runat= "server"></rad:radEditor> <input type="button" value="Get Plain Text" onclick="GetHtmlSelection()" /> <script type="text/javascript"> function GetHtmlSelection() { var editor = <%=RadEditor1.ClientID %>; //get a reference to the editor var oSelElem = editor.GetText(); //get the editor content as plain text alert(oSelElem); //alert the plain text content } </script> |