Module

utils/dom/getscrollableancestors

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

module

Filtering

Functions

  • internal

    getScrollableAncestors( element ) → Array<HTMLElement | Document>

    Loops over the given element's ancestors to find all the scrollable elements.

    Note: The document is always included in the returned array.

    Parameters

    element : HTMLElement

    Returns

    Array<HTMLElement | Document>

    An array of scrollable element's ancestors (including the document).