RegisterCustomButton problem

Last post 10-18-2004, 12:44 PM by azaldivar. 2 replies.
Sort Posts: Previous Next
  •  10-18-2004, 7:11 AM 2115

    RegisterCustomButton problem

    I'm starting to develop with CuteEditor for .Net, and I've found a problem with a very simple task, documented in the examples, but that I cannot put to work.

     
    I want to have a custom button in my editor to do some task, I have followed the instructions and I've wrote the next code in the Page_Load event of a aspx page with only one Cute Editor 3.0 for .NET:
     

    'Custom Button

    Dim Image1 As New System.Web.UI.WebControls.Image

    Image1.ID = "Test" 'This ID will be used in template

    Image1.ToolTip = "Test Button"

    Image1.ImageUrl = HttpContext.Current.Request.ApplicationPath + "/btnCopiar.gif"

    Image1.CssClass = "button"

    Image1.Attributes.Add("onclick", "Paste_Html('Editor1','Testing...')")

    Image1.Attributes.Add("type", "btn")

    Editor1.RegisterCustomButton(Image1)
     
    There is no more code in the page, the Image Url is correct, and the page does not raises any error. The Editor shows correctly, but the custom button does not shows anywhere.
     
    I'm using VisualStudio 2003 and .NET Framework 1.1, Spanish version.
     
    Could you help me, please?
     
    Thank you very much.
  •  10-18-2004, 10:08 AM 2116 in reply to 2115

    Re: RegisterCustomButton problem

     
    After you registered your custom button, have you added this button to the editor template property?
     

    <CE:Editor id="Editor1" runat="server" Template="Bold,Italic,Underline,Separator,Test"></CE:Editor>


    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

  •  10-18-2004, 12:44 PM 2118 in reply to 2116

    Re: RegisterCustomButton problem

    No. That was the problem.

     
    Ok, thank you very much.
View as RSS news feed in XML