Bug ? RegisterCustomButton() and Seperator

Last post 07-15-2004, 8:07 AM by mfilthau. 2 replies.
Sort Posts: Previous Next
  •  07-12-2004, 7:52 AM 1218

    Bug ? RegisterCustomButton() and Seperator

    Hi,

     
    I think there is a "bug" in CuteEditor.
     
    If I Register a Customer Button with Editor1.RegisterCustomButton(Image1) and want to show this Customer button after a Seperator, CuteEditor can not display the button. Before a seperator is now problem.
     
    Hope for quick response.
     
    Regards Marc
  •  07-12-2004, 1:44 PM 1231 in reply to 1218

    Re: Bug ? RegisterCustomButton() and Seperator

    Marc,

     
    I made a test, didn't find the problem. My code is as followings: 
     
    <CE:Editor

        id="Editor1"

        runat="server"

        Template="Bold,Italic,Underline,Separator,MYHtml">

    </CE:Editor>

     

    If the problem exists, please let me know how to reproduce it.


    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

  •  07-15-2004, 8:07 AM 1257 in reply to 1231

    Re: Bug ? RegisterCustomButton() and Seperator

    Yes the problem exists:

     
    Template="Exit,Save,ChangeParagraph,Seperator,.... -> OK
    Template="Exit,Save,Seperator,ChangeParagraph,... -> Display another Seperator instead of ChangeParagraph
     
     

    System.Web.UI.WebControls.Image Image2 = new System.Web.UI.WebControls.Image ();

    Image2.ID = "ChangeParagraph";

    Image2.ToolTip = "Change Paragraph";

    Image2.ImageUrl = "/images/paragraph.gif";

    Image2.CssClass = "button";

    Image2.Attributes.Add("onclick","alert('Hi');");

    Image2.Attributes.Add("type","btn");

    Editor1.RegisterCustomButton(Image2);
     
     
View as RSS news feed in XML