Howcome Cute Editor removes this line?

  •  04-28-2006, 12:48 PM

    Howcome Cute Editor removes this line?

    I'm using Cute Editor in a masterpage environment. Sometimes the topline in the page code is removed if the page has been edited inside Cute Editor  This line: <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Page Titel" %>
     
    Anyway to avoid this?
     
    This is the code on the editorpage I use
    <form runat="server">
       <table border="0" cellpadding="0" cellspacing="0">
        <tr>
         <td width=10 nowrap></td>
         <td valign="top" nowrap id="leftcolumn" width="160">        
         </td>
         <td width="20" nowrap></td>
         <td valign="top" width="760">
          <CE:Editor id="Editor1" EnableStripScriptTags = "false" UseHTMLEntities = "false" EditorWysiwygModeCss="~/css/styleseditor.css" AllowPasteHtml="false" runat="server" Height="800px" BreakElement="P">
                                <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"
                                    CssClass="CuteEditorFrame" Height="100%" Width="100%" />
                            </CE:Editor><BR>
          <asp:Button id="btnUpdate" onclick="Submit" Runat="server" Text="Submit"></asp:Button><br />   
         </td>
        <tr>
       </table>   
      </form>
    <script runat="server">
     Public Sub Page_Load(sender As object, e As System.EventArgs)
     
      If Page.IsPostBack Then
       Editor1.SaveFile(Request.QueryString("Page"))
            Else
                Editor1.LoadHtml(Request.QueryString("Page"))
      End If
      
     End Sub
     public Sub Submit(sender As object, e As System.EventArgs)
      Editor1.SaveFile(Request.QueryString("Page"))
     
      Response.Redirect(Request.QueryString("Page"))
     End Sub
    </script>
View Complete Thread