Re: CleanUpHTMLCode and CleanUpMicrosoftWordHTML buggy

  •  01-04-2006, 1:44 AM

    Re: CleanUpHTMLCode and CleanUpMicrosoftWordHTML buggy

    Doug,
     
    Please test the following link:
     

    In this example, I passted the string you mentioned using the .Text property.
     
    The code of this example is as followings:
     
     
     <%@ Page Language="C#" ValidateRequest="false" %>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <script runat="server">
     void Page_Load(object sender, System.EventArgs e)
      {
         if (IsPostBack)
      {
       textbox1.Text = Editor1.Text;
         }
      else
      {
       Editor1.Text = @"<div><span style=""FONT-FAMILY: Arial"">This is <strong>test content</strong> for 007 ... <img height=55 src=""/image/portal.gif"" width=240></span></div>";
      }
     
     }
     public void Submit(object sender, System.EventArgs e)
     {
       textbox1.Text = Editor1.Text;
       Editor1.CleanUpHTMLCode();
       textbox2.Text = Editor1.Text;
     }
    </script>
    <html>
     <head>
     </head>
     <body>
            <form runat="server">
       <CE:Editor AllowEditServerSideCode="true" id="Editor1" runat="server" ></CE:Editor><BR>
       <br />
       <asp:Button id="btnUpdate" onclick="Submit" Runat="server" CssClass="button65" Text="Submit"></asp:Button>      
       <br />
       <asp:textbox id="textbox1" runat="server" TextMode="MultiLine" Height="250px" Width="730px" Font-Name="Arial"></asp:TextBox><br />  
       <br />
       Use CleanUpHTMLCode Method: <br>
       <asp:textbox id="textbox2" runat="server" TextMode="MultiLine" Height="250px" Width="730px" Font-Name="Arial"></asp:TextBox><br />  
       
        
      </form>
     </body>
     
     
    >>Is it possible that the freely downloadable trial version is crippled at 40 characters of output? 

    No.

    Keep me posted

     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread