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
Comment #1
zach harkey commentedI 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.
Comment #2
m3avrck commentedThanks this has been fixed in CVS.
Comment #3
(not verified) commentedComment #4
pips1 commentedSince 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: