Hi,
Is it possible to have the FCKEditor use different toolbars based on the path (or other variable)?
I have a site with a content type "newsletter"; I have built a bunch of plugins that style the text using inline styles instead of normal classes/etc. I'd like to hide the normal font selection toolbars on the newsletter edit pages, and likewise hide the newsletter-specific buttons on all the normal node pages.
I thought maybe the best way to do that was to create two different toolbars (one with each set of buttons) and then have the editor display the appropriate one based on path (or field name, or whatever). Is there a way to do this?
(Or can I piggyback on the "Force Simplified Toolbar" settings -- which I don't use otherwise -- and define what buttons show up in the simplified toolbar?)
Thanks!
Comments
Comment #1
leenwebb commentedAh! Solved my own problem.
The "Simplified toolbar" is called "DrupalBasic" in the config file. I don't know why I didn't see it before -- must have been looking for the word "simplified". So I edited the buttons that show up in that toolbar and set it to show up for my Newsletter edit fields.
A more industrious person could probably duplicate that whole concept in the code and create another set of "Force ToolbarX on these fields/paths" options. I am not that person (yet). :)