Hi FirstSignInNoGood,
you can get the editor content when postback like string HtmlFormattedText = CuteEditor.Text;
And you can get the plain text like the example below
- <%@ Page Language="C#" AutoEventWireup="true" %>
-
- <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
- <script runat="server">
-
- protected void button1_Click(object sender, EventArgs e)
- {
-
- text1.Text = EditorUtility.ConvertToXmlDocument(editor1.XHTML).InnerText;
-
- }
- </script>
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- <title></title>
- </head>
- <body>
- <form id="form1" runat="server">
- <CE:Editor ID="editor1" runat="server">
- </CE:Editor>
- <asp:TextBox ID="text1" runat="server" Width="600px"></asp:TextBox>
- <asp:Button ID="button1" runat="server" Text="Get plain text" OnClick="button1_Click"
- OnClientClick="GetPlainText()" />
- </form>
- </body>
- </html>
You can downlaod the trial demo at http://cutesoft.net/downloads/folders/21904/download.aspx
Regards,
Ken