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
Fuzzy location mapping #161
When re-parsing the editor's HTML, we create a location range using points because the unknown input may have removed Trix's block comment nodes. Calculating a location range from HTML with missing comment nodes would often result in the wrong cursor position after rendering. Usually off by 1, at the end of the preceding block. See #116 and #131.
Using points works well most of the time, but occasionally fails in conditions that are difficult to reproduce. This change removes the use of points, and goes back to using