WIP - add extractor, generate snippet_data
This commit is contained in:
18
node_modules/toggle-selection/README.md
generated
vendored
Normal file
18
node_modules/toggle-selection/README.md
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
# Toggle Selection
|
||||
|
||||
Simple module exposing function that deselects current browser selection and returns function that restores selection.
|
||||
|
||||
```
|
||||
var deselect = require('toggle-selection');
|
||||
var reselect = deselect(); // remove all selection
|
||||
// …
|
||||
// do something with current selection, text, etc;
|
||||
// …
|
||||
reselect(); // restore selection
|
||||
```
|
||||
|
||||
All credits go to [@shvaikalesh](https://github.com/shvaikalesh).
|
||||
|
||||
# [Example](https://github.com/sudodoki/toggle-selection/blob/master/example)
|
||||
|
||||

|
||||
Reference in New Issue
Block a user