selectionchange-polyfill
selectionchange-polyfill copied to clipboard
Seems, it does not detect changes when there are multiple selection ranges
use Ctrl in Firefox to start multiple selection, second range should be later in the DOM tree (so window.getSelection.getRangetAt(0) always returns the first range.