RadEditor for ASP.NET

GetText Send comments on this topic.
Client-side API Reference > Methods > GetText

Glossary Item Box

Returns the editor content as plain text. 

function GetText ()

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>