engine/view/styles/border
module
Functions
-
addBorderStylesRules( stylesProcessor ) → void
module:engine/view/styles/border~addBorderStylesRules
Adds a border CSS styles processing rules.
editor.data.addStyleProcessorRules( addBorderStylesRules );
This rules merges all border styles notation shorthands:
- border
- border-top
- border-right
- border-bottom
- border-left
- border-color
- border-style
- border-width
and all corresponding longhand forms (like
border-top-color
,border-top-style
, etc).It does not handle other shorthands (like
border-radius
orborder-image
).The normalized model stores border values as:
editor.data.addStyleProcessorRules( addBorderStylesRules );
Parameters
stylesProcessor : StylesProcessor
Returns
void