Currently it is possible to define own css classes for the "Font style" dropdown list, but it's required to also define a selector, which get these classes:

Title=h1.title

It would be great if you're not forced to specify a html element to apply the classes to, so it's possible to add them to any element in your wysiwyg editor, e.g.

Title=*.title

Any ideas on how to do that?

Comments

TwoD’s picture

Status: Active » Closed (won't fix)

I'm assuming you're using CKEditor here, based on the format of the Font style definition.

For CKEditor, this setting maps to the stylesSet, which does not seem to allow wildcards.

For TinyMCE, this links to theme_advanced_styles, which does not allow wildcards. Though it also does not require a tag name, so Wysiwyg does also not require one in that case.

drupov’s picture

Thank you!