@wordpress/dom
Version:
DOM utilities module for WordPress.
11 lines • 494 B
TypeScript
/**
* Check whether the current document has any sort of (uncollapsed) selection.
* This includes ranges of text across elements and any selection inside
* textual `<input>` and `<textarea>` elements.
*
* @param {Document} doc The document to check.
*
* @return {boolean} Whether there is any recognizable text selection in the document.
*/
export default function documentHasUncollapsedSelection(doc: Document): boolean;
//# sourceMappingURL=document-has-uncollapsed-selection.d.ts.map