@wordpress/dom
Version:
DOM utilities module for WordPress.
10 lines • 386 B
TypeScript
/**
* Check whether the current document has a selection. This includes focus in
* input fields, textareas, and general rich-text selection.
*
* @param {Document} doc The document to check.
*
* @return {boolean} True if there is selection, false if not.
*/
export default function documentHasSelection(doc: Document): boolean;
//# sourceMappingURL=document-has-selection.d.ts.map