# engine/view/styles/border

module

<a id="functions">

## Functions

<a id="function-addBorderStylesRules">

### `addBorderStylesRules( stylesProcessor ) → void`

Adds a border CSS styles processing rules.

```typescript
editor.data.addStyleProcessorRules( addBorderStylesRules );
```

This rules merges all [border](https://developer.mozilla.org/en-US/docs/Web/CSS/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` or `border-image`).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/styles/border.ts#L51)

#### Parameters

* `stylesProcessor: StylesProcessor`

#### Returns

* `void`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
