guardian / scribe

DEPRECATED: A rich text editor framework for the web platform
http://guardian.github.io/scribe/
Apache License 2.0
3.51k stars 245 forks source link

fix creating selection range when endNode contains startNode (#526) #527

Open sauerbraten opened 5 years ago

sauerbraten commented 5 years ago

fixes #526 by also checking that the endNode isn't an ancestor of startNode before reversing the selection range