(urgent)Need Help regarding adding new button in cute editor5.x between "image gallery" and "insert image" buttons

Last post 03-03-2007, 12:59 AM by newtech_developer. 2 replies.
Sort Posts: Previous Next
  •  03-02-2007, 6:18 AM 27101

    (urgent)Need Help regarding adding new button in cute editor5.x between "image gallery" and "insert image" buttons

    hi, there I need to add new button on the tool bar (not like addonns button, I want to add this button very next to the “image gallery button”)…but after lot of effort I m still not able to doing this…plz help me out…because I have submit it very soon that’s why this is very urgent…

  •  03-02-2007, 9:33 AM 27107 in reply to 27101

    Re: (urgent)Need Help regarding adding new button in cute editor5.x between "image gallery" and "insert image" buttons

    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.
     
    Add a Cross Browser Modal Dialog Box to Cute Editor

    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

  •  03-03-2007, 12:59 AM 27121 in reply to 27107

    Re: (urgent)Need Help regarding adding new button in cute editor5.x between "image gallery" and "insert image" buttons

    as i have already descibe u in my deatail section that i just donot want to add cusom button or adons button i need the core functionality of the inner section from where other buttons are just made...thanx for reply and plz make it fast
    * and one thing more the dialog must be as same as image gallery....thanx
View as RSS news feed in XML