Removing icons from toolbar

Jul 30, 2008 at 3:42 PM
Edited Jul 31, 2008 at 11:00 AM
  First of all...great project. :)
  I would like to remove some icons form the toolbar but removing some of them from the toolbar by just commenting out code lines as for the emoticons icon doesn't work...that is after recompile which is successfull the RTE control will not render in the ACT tab control (dunno if it would render if it was placed outside of it). In particular I'd like to remove the list of fonts, the hyperlink, background and foreground color icons, beside the emoticon whose removal method as suggested here in one previous discussion (comment out  line toolbar.AddButton(AjaxControls.ToolBar.ToolbarItemType.ImageButton, ToolTips["Emoticons"].ToString(), 17, "OnEmoticon",null,"RteEmoticon")) does work for me.
Aug 4, 2008 at 11:17 AM
Bump... :)
Really? No one has any info on removing additional toolbar buttons beside the emoticon button? How about disabling the buttons at least (graying them out)? I see that once you switch from Text to Html View all the buttons on the toolbar get grayed out (which is as far as I can tell done in stratup.js), so how about a way to disable certain buttons both in starting Text and Html View too, please?
Thanks in advance good ppl...
Aug 9, 2008 at 5:02 PM
Maybe there is an easier way but I removed buttons by removing references to the buttons I didn't want from the i18N.xml file.  I then had to remove references to the unwanted buttons from the RteStartup.js and rte.cs files.
Aug 11, 2008 at 9:36 PM
DarenTx, that's pretty much the only way to remove buttons at the moment. I don't remember having to edit the i18N.xml file though.

This is on my list of features to add but it's a good amount of work to do it right. I'm thinking of creating a template system so that, in addition to removing buttons, you can also re-order them.