dillon1000/react

Commit

Add ReactDOMSelection module

Add a DOM based selection module. This can both be used on its own and
in ReactInputSelection where our current implementation is lacking.

There is still some inconsistency with how IE and modern browsers
handle block nodes. Should be OK if we are just getting and setting
and not trying to set selection based on character offsets.
Browse files
Changed paths4 files
First-parent comparison
A src/core/ReactDOMSelection.js AddedM src/core/ReactInputSelection.js ModifiedA src/dom/__tests__/getNodeForCharacterOffset-test.js AddedA src/dom/getNodeForCharacterOffset.js Added
Patch

Files changed

Rendering syntax-highlighted changes…