I am tring to add a custom button but I get 2 buttons se image attached. I am adding it through the code as follows:
- CuteEditor.ToolControl tc = txtHTMLFile.ToolControls["RapaportImage"];
- if (tc != null)
- {
- Image Image1 = new Image();
- Image1.ToolTip = "Insert today's date";
- Image1.ImageUrl = "rapaport_370x48px.jpg";
- Image1.CssClass = "CuteEditorButton";
- Image1.Height = Unit.Pixel(15);
- SetMouseEvents(Image1);
- Image1.Attributes["onclick"] = "alert('hello');";
- tc.Control.Controls.Add(Image1);
- }
and referring to the button through a config file:
- <CE:Editor
- ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/Templates.config"
- Height="560px" ID="txtHTMLFile" Width="100%" EnableContextMenu="false" runat="server"
- ResizeMode="None" BreakElement="Br" />
in the file I put the following:
- <toolbars>
- <item type="image" name="RapaportImage" />
the problem:
Thanks for your help
Eli