Re: Custom button problem

  •  08-12-2009, 5:34 AM

    Re: Custom button problem

    Hi esack,
     
    try this way:
     
    1. Delete this line '<item type="image" name="RapaportImage" /> ' in you config file
     
    2. Insert your custom button after 'Save' button
     
     protected override void OnLoad(EventArgs e)
        {
            
            CuteEditor.ToolControl tc = Editor1.ToolControls["Save"];
            if (tc != null)
            {
                Image Image1 = new Image();
                Image1.Attributes["onclick"] = "alert('hello');";
                tc.Control.Controls.Add(Image1);
            }
            base.OnLoad(e);
        }
     
    Regards,
     
    Ken
View Complete Thread