Stipped down form of HTML output

Last post 01-06-2005, 3:33 PM by Adam. 6 replies.
Sort Posts: Previous Next
  •  01-04-2005, 2:03 PM 3255

    Stipped down form of HTML output

    Hi,
    I was looking at the example on http://cutesoft.net/example/xmloutput.aspx and when you submit the page the html displayed shows only the items entered (not the form tag, body tag, table tag, etc).  I downloaded the demo and tried it out but the html I am getting has the body tags and such in it.   I even copied the line of example code diplayed on the page but it only caused a parse error stating the following: 'EnableAll' is not a valid value for attribute 'AutoConfigure'. It must be of enum type 'CuteEditor.AutoConfigure'.

     I am using editor1.GetFullHTML to copy the HTML into a seperate text box on the page, is GetFullHTML the wrong thing to use?  Thanks for the help, Carla :)

  •  01-04-2005, 4:21 PM 3258 in reply to 3255

    Re: Stipped down form of HTML output

    Carla,

    If you set EditCompleteDocument="true", you will get full html page (with body tag, head tag and form tag). Otherwise, the editor will return only the items entered (not the form tag, body tag, table tag, etc).  

    I even copied the line of example code diplayed on the page but it only caused a parse error stating the following: 'EnableAll' is not a valid value for attribute 'AutoConfigure'. It must be of enum type 'CuteEditor.AutoConfigure'.

    In the version 4.0, we changed the 'EnableAll' to 'Full'. For example:

    <CE:Editor id="Editor1" AutoConfigure="Full" runat="server" ></CE:Editor>

    Keep me posted.
     
  •  01-05-2005, 12:57 PM 3280 in reply to 3258

    Re: Stipped down form of HTML output

    Hi,
    I had EditCompleteDocument = False in the page load.....Is there something else I should have set besides that?   Thanks, Carla :)

  •  01-05-2005, 2:36 PM 3282 in reply to 3280

    Re: Stipped down form of HTML output

    Can you create a simple example and post the code here?
     
    Is the site online so you can provide the URL?

    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

  •  01-06-2005, 7:58 AM 3298 in reply to 3255

    Re: Stipped down form of HTML output

    Probably not the same problem: I'm using a complete HTML page as template. Neither in preview nor in HTML output ALL elements of the template are given back (regardless of what the settings of EditcompleteDocument and Fullpage is)
     
    Regards
  •  01-06-2005, 9:16 AM 3305 in reply to 3282

    Re: Stipped down form of HTML output

    Hi,
    Here is the HTML (had to add some / so the code would appear as text):

            /<form id="Form1" method="post" runat="server"/>
                /<asp:button id="Button1" style="Z-INDEX: 101; LEFT: 104px; POSITION: absolute; TOP: 528px" runat="server"
                    Text="Button" Width="80px" Height="48px"/>/</asp:button/>
                /<asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 288px; POSITION: absolute; TOP: 520px"
                    runat="server" Width="544px" Height="120px"/>/</asp:TextBox/>
                /<ce:Editor id="Editor2" style="Z-INDEX: 103; LEFT: 80px; POSITION: absolute; TOP: 128px" runat="server"
                    Height="296px" Width="696px"/>/</ce:Editor/>/</form/>

    Here is the Code Behind:

        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Editor2.EditCompleteDocument = False
        End Sub

        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            TextBox1.Text = Editor2.GetFullHtml
        End Sub

    Thanks so much for the help, Carla :)

  •  01-06-2005, 3:33 PM 3311 in reply to 3305

    Re: Stipped down form of HTML output

    Carla,
     
    please use the Editor.Text or Editor.XHTML property instead of using the GetFullHtml which will return the full html page (with body tag, head tag and form tag).

    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