APIs
/** * Returns the selected text *//** * Returns the paragraph containing the selection text. *//** * Returns the sentence containing the selection text. */
Optionally pass window
of other frame to get selection within that frame.
Usage
document
Or load the UMD module directly which exposes getSelectionMore
global.