Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix selecting attachments in MS Edge #531
Currently, Trix programmatically selects attachments using a DOM Range anchored to the text nodes in the surrounding cursor target elements.
That range has worked reliably in all browsers
This change works around the problem by anchoring to the cursor target elements instead of their text nodes.
The resulting selection is visually and functionally equivalent.