# list/list/utils/postfixers

module

<a id="functions">

## Functions

<a id="function-findAndAddListHeadToMap">

### `findAndAddListHeadToMap( position, itemToListHead, visited ) → void` _(internal)_

Based on the provided positions looks for the list head and stores it in the provided map.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-list/src/list/utils/postfixers.ts#L22)

#### Parameters

* `position: ModelPosition`

  The search starting position.

* `itemToListHead: Set<ListElement>`

  The map from list item element to the list head element.

* `visited: Set<ModelElement>`

  A set of elements that were already visited.

#### Returns

* `void`

<a id="function-fixListIndents">

### `fixListIndents( listNodes, writer ) → boolean` _(internal)_

Scans the list starting from the given list head element and fixes items' indentation.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-list/src/list/utils/postfixers.ts#L70)

#### Parameters

* `listNodes: Iterable<ListIteratorValue>`

  The iterable of list nodes.

* `writer: ModelWriter`

  The model writer.

#### Returns

* `boolean`

  Whether the model was modified.

<a id="function-fixListItemIds">

### `fixListItemIds( listNodes, seenIds, writer ) → boolean` _(internal)_

Scans the list starting from the given list head element and fixes items' types.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-list/src/list/utils/postfixers.ts#L123)

#### Parameters

* `listNodes: Iterable<ListIteratorValue>`

  The iterable of list nodes.

* `seenIds: Set<string>`

  The set of already known IDs.

* `writer: ModelWriter`

  The model writer.

#### Returns

* `boolean`

  Whether the model was modified.

---

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