Skip to content

CannerCMS/get-selection-range

Repository files navigation

get-selection-range NPM version Dependency Status

Get cursor's selection range.

Installation

$ npm install --save get-selection-range

Usage

var getSelectionRange = require('get-selection-range');

// get visible selection range
getSelectionRange.getVisibleSelectionRect();

// get collpase selection range
getSelectionRange.getCollapsedClientRect()

License

MIT © chilijung

About

Get current cursor's selection range

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published