newtech_developer,
Please try the following example:
//<item type="image" name="Italic" imagename="Italic" />
//get the pos after the Italic
int pos=Editor1.ToolControls.IndexOf("Italic")+1;
//Themes/%ThemeName%/Images/text.gif
WebControl ctrl=Editor1.CreateCommandButton("MyButton","text.gif","Insert My Custom Text");
ctrl.Attributes["onclick"]="ShowMyDialog(this)";
//add this custom button into the editor
Editor1.InsertToolControl(pos,"MyButton",ctrl);
The following demo uses this method to create a custom button. The source code of this example can be found in the download package.
|
How to create a custom button(client side) which displays a dialog?( C# | VB )
This example demonstrates how easy it can be to add your own client side buttons to the CuteEditor by creating a Cross Browser Modal Dialog Box.
|
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