User555306248 posted
The AjaxControlToolkit HTMLEditor extender is built by Obout and added in the latest version 3.0.30512. There are many changes of the class name, method name and namespace, but the two base theories are the same. It is still built on top of the Microsoft
ASP.NET AJAX framework.
So, customize the HTMLEditor ToolBar is to add some client behaviors and DOM documents to it. In the Obout HTMLEditor, the new button is added as the “Custom” type.
http://www.obout.com/editor_new/howto_CB.aspx But in the AjaxControlToolkit HTMLEditor, we can achieve this function by adding MethodButton
like this:
protected override void FillTopToolbar()
{
//base.FillTopToolbar();
AjaxControlToolkit.HTMLEditor.ToolbarButton.MethodButton btn=new AjaxControlToolkit.HTMLEditor.ToolbarButton.MethodButton();
btn.NormalSrc= "aa.jpg";
btn.Attributes.Add("onclick", "alert('a');");
TopToolbar.Buttons.Add(btn);
}
http://forums.asp.net/p/1431280/3227712.aspx#3227712
http://forums.asp.net/t/1652683.aspx
http://forums.asp.net/t/1599965.aspx