Re: Installation

  •  12-06-2012, 11:55 AM

    Re: Installation

    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

     

    1. <%@ Page Language="C#" AutoEventWireup="true" %> 
    2.  
    3. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %> 
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
    5.  
    6. <script runat="server"
    7.  
    8.     protected void button1_Click(object sender, EventArgs e) 
    9.     { 
    10.  
    11.         text1.Text = EditorUtility.ConvertToXmlDocument(editor1.XHTML).InnerText; 
    12.  
    13.     } 
    14. </script> 
    15.  
    16. <html xmlns="http://www.w3.org/1999/xhtml"
    17. <head id="Head1" runat="server"
    18.     <title></title> 
    19. </head> 
    20. <body> 
    21.     <form id="form1" runat="server"
    22.         <CE:Editor ID="editor1" runat="server"
    23.         </CE:Editor> 
    24.         <asp:TextBox ID="text1" runat="server" Width="600px"></asp:TextBox> 
    25.         <asp:Button ID="button1" runat="server" Text="Get plain text" OnClick="button1_Click" 
    26.             OnClientClick="GetPlainText()" /> 
    27.     </form> 
    28. </body> 
    29. </html> 
     

    You can downlaod the trial demo at http://cutesoft.net/downloads/folders/21904/download.aspx

     

    Regards,

     

    Ken

View Complete Thread