Class CUI.rte.plugins.StylesPlugin
| Package: | CUI.rte.plugins |
| Class: | StylesPlugin |
| Extends: | CUI.rte.plugins.Plugin |
| Clientlib: | cq.widgets |
This class implements styling text fragments with a CSS class (using "span" tags) as a
plugin.
The plugin ID is "styles".
Features
- styles - adds a style selector (styles will be applied on selection scope)
Config Options
| |
styles : Object/Object[]
Defines CSS classes that are available to the user for formatting text fragments (defaults to { }). There are two way...
Defines CSS classes that are available to the user for formatting text fragments (defaults to { }). There are two ways of specifying the CSS classes: - Providing styles as an Object: Use the CSS class name as property name. Specify the text that should appear in the style selector as property value (String).
- Providing styles as an Object[]: Each element has to provide "cssName" (the CSS class name) and "text" (the text that appears in the style selector) properties.
Styling is applied by adding "span" elements with corresponding "class" attributes appropriately.
Added in CQ 5.3.
|
StylesPlugin |
Public Properties
This class has no public properties.
Public Methods
This class has no public methods.
Public Events
This class has no public events.