Re: "Fancy" Paragraph drop-down

  •  03-03-2004, 1:42 PM

    Re: "Fancy" Paragraph drop-down

    caitlin,

     

    Can you try the following code we used on our example?

     

    To customize paragraph dropdownlist,  you need config the ParagraphsList property as followings:

     

    Editor1.ParagraphsList = new string[] {"Normal","Heading 1","Heading 2"};

     

     

     <%@ Page Language="C#" ValidateRequest="False" %>

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>

    <html>

    <head>

             <title>ASP and ASP.NET WYSIWYG Editor - Config paragraph dropdownlist</title>

     </head>

    <body >

           <form runat="server">

                <h2>Config paragraph dropdownlist</h2>

                <CE:Editor id="Editor1" EnableFancyDropDownMenu="true" AutoConfigure="EnableAll"

                       runat="server" ></CE:Editor><br /><br />

                <asp:Button id="btnUpdate" onclick="Submit" Runat="server" Text="Show HTML"></asp:Button>

                <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);

                  }

                

                 Editor1.ParagraphsList = new string[] {"Normal","Heading 1","Heading 2"};

            }

            

           public void Submit(object sender, System.EventArgs e)

           {

                 Literal1.Text = "<h2>The HTML you typed is...</h2><br>";

                 Literal1.Text += Server.HtmlEncode(Editor1.XHTML);

           }

    </script> 


    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