Module

list/documentlist/utils/postfixers

@ckeditor/ckeditor5-list/src/documentlist/utils/postfixers

module

Filtering

Functions

  • findAndAddListHeadToMap( position, itemToListHead )

    protected

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

    Parameters

    position : Position

    The search starting position.

    itemToListHead : Map.<Element, Element>

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

  • fixListIndents( listNodes, writer ) → Boolean

    protected

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

    Parameters

    listNodes : Iterable.<ListIteratorValue>

    The iterable of list nodes.

    writer : Writer

    The model writer.

    Returns

    Boolean

    Whether the model was modified.

  • fixListItemIds( listNodes, seenIds, writer ) → Boolean

    protected

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

    Parameters

    listNodes : Iterable.<ListIteratorValue>

    The iterable of list nodes.

    seenIds : Set.<String>

    The set of already known IDs.

    writer : Writer

    The model writer.

    Returns

    Boolean

    Whether the model was modified.