StyleConfig (style)
@ckeditor/ckeditor5-style/src/style
The configuration of the style feature.
See all editor options.
Filtering
Properties
-
definitions : Array.<StyleDefinition>
The available style definitions.
Style definitions are displayed in the
'style'
UI dropdown and get applied by the style command to the content of the document.In the
'style'
UI dropdown, definitions are automatically grouped into two categories based on the of theelement
property:- Block styles: Can be applied to entire block elements only (e.g. headings, paragraphs, divs).
- Text styles: Can by applied to any text in any element in the document.
An example configuration:
Note: Configuring style definitions will automatically configure the General HTML Support feature. You do not need to repeat the configuration in
GeneralHtmlSupportConfig
.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.