Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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.