Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
TwoDI'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.
Comment #2
drupov CreditAttribution: drupov commentedThank you!