engine/view/styles/border
module
Functions
addBorderStylesRules( stylesProcessor ) → voidmodule:engine/view/styles/border~addBorderStylesRulesAdds a border CSS styles processing rules.
editor.data.addStyleProcessorRules( addBorderStylesRules );Copy codeThis 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-radiusorborder-image).The normalized model stores border values as:
const styles = { border: { color: { top, right, bottom, left }, style: { top, right, bottom, left }, width: { top, right, bottom, left }, } };Copy codeParameters
stylesProcessor : StylesProcessor
Returns
void