Style dropdown: Support for universal selector * to apply classes to any element #455
Unanswered
lisapower123
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the style dropdown in CKEditor only allows applying a style class to predefined element types (e.g., p, h2, a). If you want to use the same style for both block-level and inline elements, you need to create separate definitions for each element type.
Proposal:
Extend the style definitions to allow using the universal selector "*" so that a class can be applied regardless of the current element type, whether it's p, h2, span, a or any other.
Example:
{
"name": "Small text",
"element": "*",
"classes": [ "small-text" ]
}
Benefits:
Beta Was this translation helpful? Give feedback.
All reactions