engine/view/styles/background
module
Functions
-
addBackgroundStylesRules( stylesProcessor ) → void
module:engine/view/styles/background~addBackgroundStylesRules
Adds a background CSS styles processing rules.
editor.data.addStyleProcessorRules( addBackgroundStylesRules );
The normalized value is stored as:
const styles = { background: { color, repeat, position, attachment, image } };
Note: Currently only
'background-color'
longhand value is parsed besides'background'
shorthand. The reducer also supports only'background-color'
value.Parameters
stylesProcessor : StylesProcessor
Returns
void