Selectables - text range

Selectables - text range


Hi, I have some text that I want to present in a paragraph form, and
have each sentence selectable.
Selectables using span elements work fine, except that when dragging
over a few lines, only 'vertically-touched' sentences are highlighted.
Ideally, I would like it to select all sentences between the first
selected and last selected ones.
IDs of selected sentence spans will then be collected and used for
some further backend manipulation.
E.g, for the following:
Test sentence 1. Test sentence 2. Test sentence 3.
Test sentence 4. Test sentence 5. Test sentence 6.
Test sentence 7. Test sentence 8. Test sentence 9.
It would be possible to select only test sentences 2,5 & 8, but the
desired effect is to select everything between sentences 2 & 8
(similar to how you would in any other application)
Any ideas?