⚠️ WarningNightly documentation ahead. Switch to the stable editor documentation.
Typedef

BoxSides (engine/view)

@ckeditor/ckeditor5-engine/src/view/stylesmap

typedef
Object

An object describing values associated with the sides of a box, for instance margins, paddings, border widths, border colors, etc.

const margin = {
	top: '1px',
	right: '3px',
	bottom: '3px',
	left: '7px'
};

const borderColor = {
	top: 'red',
	right: 'blue',
	bottom: 'blue',
	left: 'red'
};

Filtering

Properties

  • Bottom side value.

  • Left side value.

  • Right side value.

  • Top side value.