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.