# LineHeightConfig

interface

The configuration of the [`LineHeight`](module_line-height_lineheight-LineHeight.md) feature.

Read more in [`LineHeightConfig`](module_line-height_lineheightconfig-LineHeightConfig.md).

<a id="properties">

## Properties

<a id="member-defaultValue">

### `defaultValue?: number`

Default value of line height attribute. Defaults to `1.5`.

<a id="member-options">

### `options?: Array<string | number | LineHeightOption>`

Available line height options. The default value is:

```typescript
const lineHeightConfig = {
	options: [ 0.5, 1, 1.5, 2, 2.5 ]
};
```

**Note**: Line height values have to be provided in a format without units. The available values are always multipliers of the default line height applied to the edited content.

<a id="member-supportAllValues">

### `supportAllValues?: boolean`

By default, the plugin removes any `line-height` value that does not match the plugin's configuration. It means that if you paste content with line heights that the editor does not understand, the `line-height` attribute will be removed and the content will be displayed with the default line height.

You can preserve pasted line heights values by switching the `supportAllValues` option to `true`:

```typescript
const lineHeightConfig = {
	supportAllValues: true
};
```

With this configuration line heights not specified in the editor configuration will not be removed when pasting the content.

---

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