Howcome Cute Editor removes this line?

Last post 05-03-2006, 1:16 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  04-28-2006, 12:48 PM 18582

    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>
  •  05-01-2006, 1:28 PM 18639 in reply to 18582

    Re: Howcome Cute Editor removes this line?

    boborg,
     
    Are you using Cute Editor modifying the server side code?
     
    If so, please set Editor.AllowEditServerSideCode Property tp true.
     
    Editor.AllowEditServerSideCode Property
    By default Cute Editor doesn't allow edit the Server side code. When this property is set to true, Cute Editor will allow edit the Server side code. (<%@ Page Language="C#" %> <%=MyString %> <asp:textbox id="textbox1" runat="server"></asp:textbox>)


    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

  •  05-03-2006, 12:27 PM 18774 in reply to 18639

    Re: Howcome Cute Editor removes this line?

    I'm basically only using it for editing static html code inside a contentPlaceHolder (aspx pages). The pages I edit look like this
     
     <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Name of page" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <p>Content I edit here</p>
    </asp:Content>
     
    If I add Editor.AllowEditServerSideCode = true nothing is rendered in wysiwig or preview mode in cuteeditor.
     
    As I set it only happens occasionally that the <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Name of page" %> is removed after editing in cuteeditor.
  •  05-03-2006, 1:16 PM 18779 in reply to 18774

    Re: Howcome Cute Editor removes this line?

    boborg,
     
    >>As I set it only happens occasionally that the <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Name of page" %> is removed after editing in cuteeditor.

    Are you using the version 5.2?
     
    Can you reproduce this in the following example?
     
     
     
     

    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 as RSS news feed in XML