Re: Using a .config file with a custom button

  •  10-01-2006, 4:17 AM

    Re: Using a .config file with a custom button

    I want to add a button to insert code.I have seen the demo http://cutesoft.net/example/howto/AddButtons/vb/create_a_custom_button.aspx and the example file in cuteEdtor 5,
    but I don't know what's the mean in CuteEditor Developer Guide:
    Now you can use the custom button in the template list:
     
    <CE:EDITOR id="Editor1" runat="server" TemplateItemList="[Bold,Italic]/[mybutton]">

    Is that said :I want to add this tag in template.aspx file of the cuteeditor directory,but I ensure that not mean this,and can't you help me how to add a insertcode button,here is my c# code:
                 int pos = Editor1.ToolControls.IndexOf("InsertImage") + 1;
                WebControl ctrl = Editor1.CreateCommandButton("Insertcode", "text.gif", "Insert Code");
                ctrl.Attributes["onclick"] = "ShowMyDialog(~/InsertCode.aspx)";
                Editor1.InsertToolControl(pos, "Insertcode", ctrl);
    and next what I want to do?
    Thanks~
View Complete Thread