Module

utils/dom/getpositionedancestor

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

module

Filtering

Functions

  • getPositionedAncestor( element ) → HTMLElement | null

    static

    For a given element, returns the nearest ancestor element which CSS position is not "static".

    Parameters

    element : HTMLElement

    The native DOM element to be checked.

    Returns

    HTMLElement | null