Class CQ.form.rte.plugins.PersonalizationPlugin
This class implements styling text fragments with a CSS class (using "span" tags) as a
plugin.
The plugin ID is "variables".
Features
- variables - adds a style selector (variables will be applied on selection scope)
Additional config requirements
The following plugin-specific settings must be configured through the corresponding
CQ.form.rte.EditorKernel instance:
Config Options
| |
variables : 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 variables 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 variables 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.
|
PersonalizationPlugin |
Public Properties
This class has no public properties.
Public Methods
This class has no public methods.
Public Events
This class has no public events.