Re: Problem with AutoAdjust Height when using Chome 4.1

  •  11-22-2010, 12:51 PM

    Re: Problem with AutoAdjust Height when using Chome 4.1

    Dear Marko,
     
    Please try the following code:
     

    <%@ Page Language="C#"%>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <html>
        <head>  
     </head>
     <body>
            <form id="Form1" runat="server">   
          <CE:Editor id="Editor1"  AutoConfigure="Simple" Height="200" ResizeMode="AutoAdjust" ThemeType="Office2007" runat="server"/> <br />      
          <asp:Literal ID="Literal1" Runat="server" />       
      </form>
     </body>
    </html>

    <script runat="server">
     void Page_Load(object sender, System.EventArgs e)
      {
         if (IsPostBack)
         {
                 Literal1.Text = "<h2>The HTML you typed is...</h2><br>";
                 Literal1.Text += Server.HtmlEncode(Editor1.XHTML);
         }
         else
          {
                Editor1.Height=355;
                Editor1.ResizeMode = EditorResizeMode.PlusMinus;
                Editor1.Text = "This is some more test text.<br>This is some more test text.<br>This is some more test text.<br>
               This is some more test text.<br>This is some more test text.<br>This is some more test text.<br>This is some more test text.<br>";
          }  
      } 
    </script>
     
    Thank you for your business
View Complete Thread