determine if a text selection currently exists
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
History.md
Makefile
Readme.md
component.json
index.js

Readme.md

text-selection

determine if a text selection currently exists

Installation

Install with component(1):

$ component install bmcmahen/text-selection

Example

var hasSelection = require('text-selection');
if (hasSelection()){
  console.log('there is a selection');
}

Todo

Crossbrowser.

License

MIT