Module

utils/dom/indexof

@ckeditor/ckeditor5-utils/src/dom/indexof

module

Filtering

Functions

  • indexOf( node ) → number

    Returns index of the node in the parent element.

    Parameters

    node : Node

    Node which index is tested.

    Returns

    number

    Index of the node in the parent element. Returns 0 if node has no parent.