javascripttinymcerichtextediting

TinyMCE: Customize style-names in styleselect-menu


Let's say I have a CSS class named foo but would like it to be shown as foo (1) in the TinyMCE styleselect-menu (one of the default buttons available in the advanced theme).

I tried using the class_filter option to do this, but that doesn't seem to work.

How would you solve this problem?


Solution

  • Try initializing using the theme_advanced_styles option.