---
title: "IStyleOptions"
---
# IStyleOptions

Defined in: [src/types/style.d.ts:21](https://github.com/xdan/jodit/blob/main/src/types/style.d.ts#L21)

### element?

`optional` **element?**: [`HTMLTagNames`](../modules/types.html#htmltagnames)

Defined in: [src/types/style.d.ts:22](https://github.com/xdan/jodit/blob/main/src/types/style.d.ts#L22)

***

### attributes?

`optional` **attributes?**: [`IAttributes`](../modules/types.html#iattributes)

Defined in: [src/types/style.d.ts:23](https://github.com/xdan/jodit/blob/main/src/types/style.d.ts#L23)

***

### defaultTag?

`optional` **defaultTag?**: [`HTMLTagNames`](../modules/types.html#htmltagnames)

Defined in: [src/types/style.d.ts:24](https://github.com/xdan/jodit/blob/main/src/types/style.d.ts#L24)

***

### hooks?

`optional` **hooks?**: `object`

Defined in: [src/types/style.d.ts:25](https://github.com/xdan/jodit/blob/main/src/types/style.d.ts#L25)

#### beforeWrapList()?

`optional` **beforeWrapList**(`mode`, `li`, `style`): `void`

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `mode` | [`CommitMode`](../modules/types.html#commitmode) |
| `li` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `style` | [`ICommitStyle`](./types.ICommitStyle.html) |

##### Returns

`void`

#### afterWrapList()?

`optional` **afterWrapList**(`mode`, `li`, `style`): `void`

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `mode` | [`CommitMode`](../modules/types.html#commitmode) |
| `li` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `style` | [`ICommitStyle`](./types.ICommitStyle.html) |

##### Returns

`void`

#### beforeToggleList()?

`optional` **beforeToggleList**(`mode`, `list`, `style`): `void` \| [`CommitMode`](../modules/types.html#commitmode)

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `mode` | [`CommitMode`](../modules/types.html#commitmode) |
| `list` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `style` | [`ICommitStyle`](./types.ICommitStyle.html) |

##### Returns

`void` \| [`CommitMode`](../modules/types.html#commitmode)

#### beforeUnwrapList()?

`optional` **beforeUnwrapList**(`mode`, `list`, `style`): `void` \| [`CommitMode`](../modules/types.html#commitmode)

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `mode` | `"unwrap"` |
| `list` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `style` | [`ICommitStyle`](./types.ICommitStyle.html) |

##### Returns

`void` \| [`CommitMode`](../modules/types.html#commitmode)

#### afterToggleList()?

`optional` **afterToggleList**(`mode`, `list`, `style`): `void`

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `mode` | [`CommitMode`](../modules/types.html#commitmode) |
| `list` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `style` | [`ICommitStyle`](./types.ICommitStyle.html) |

##### Returns

`void`

#### afterToggleAttribute()?

`optional` **afterToggleAttribute**(`mode`, `elm`, `key`, `value?`): `void`

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `mode` | [`CommitMode`](../modules/types.html#commitmode) |
| `elm` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `key` | `string` |
| `value?` | `string` \| `number` \| `boolean` \| `null` |

##### Returns

`void`
