/within-selection

get the elements contained within the current text-selection

Primary LanguageJavaScript

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