window.getSelection().rangeAt(0) but only if it exists & is within an element
github.com/micnews/get-selection-range-from-elm
micnews/get-selection-range-from-elm