For the TinyMCE module (version 1.21.2.11), when the Editor CSS is selected to be "use theme css" and the CSS classes section contains classes to be used (i.e. it is not blank and the format is valid), the styles drop down list in the TinyMCE contains the full classes listing.

The problem is within the tinymce.module.
If the code:
if ($edit['css_classes']) $init['theme_advanced_styles'] = $settings['css_classes'];
is changed to be:
if ($settings['css_classes']) $init['theme_advanced_styles'] = $settings['css_classes'];

then the problem is fixed. :)

Note that this problem exists with all versions of the tinymce.module file. As of this bug report.

Comments

zach harkey’s picture

I can verify this problem exists. I cannot get classes to show up no matter what I do. I have tried every combination of css settings and get no dropdown. I tried the jspotswood's fix but it broke the form altogether. IMO the best thing about tinyMCE is the fact that I can designate custom classes that my clients can choose depending on semantic context, but at the moment they are not showing up at all.

m3avrck’s picture

Status: Active » Fixed

Thanks this has been fixed in CVS.

Anonymous’s picture

Status: Fixed » Closed (fixed)
pips1’s picture

Version: » 4.6.x-1.x-dev

Since the issue is reported to have been fixed in CVS, will there be a new release of the module (for 4.6)? Thanks!
It looks like users are getting stung by this bug, cf. support forums: