@ckeditor/ckeditor5-utils
Version:
Miscellaneous utilities used by CKEditor 5.
12 lines (11 loc) • 492 B
TypeScript
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/**
* Returns the closest scrollable ancestor of a DOM element.
*
* @param domElement DOM element.
* @returns First ancestor of `domElement` that is scrollable or null if such ancestor doesn't exist.
*/
export default function findClosestScrollableAncestor(domElement: HTMLElement): HTMLElement | null;