Hi jeff330ci,
Please try the way below.
- <%@ Page Language="c#" ValidateRequest="false" %>
-
- <%@ Register TagPrefix="RTE" Namespace="RTE" Assembly="RichTextEditor" %>
-
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
-
- </head>
- <body>
- <form id="Form1" method="post" runat="server">
- <RTE:Editor ID="Editor1" runat="server" />
- <input type="button" value="get select content" onclick="getSelectContent()" />
- </form>
- </body>
- </html>
- <script type="text/javascript">
- function getSelectContent() {
- var editor1 = document.getElementById('<%= Editor1.ClientID%>').editor;
-
- var selhtml = editor1.ExtractRangeHTML();
-
- var plainText = jsml.html_decode(selhtml);
- alert(plainText);
- }
-
- </script>
Regards,
Ken