meetwudi / within-selection

get the elements contained within the current text-selection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

within-selection

get elements contained within a selection

Installation

Install with component(1):

$ component install bmcmahen/within-selection

Use

var within = require('within-selection');
within('span'); // get all spans within the selection

License

MIT

About

get the elements contained within the current text-selection


Languages

Language:JavaScript 100.0%