-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent creation of zero-width SPANs #83
Comments
Hey @rsimon, we've also encountered the same issue. In our case the biggest problem was that when we opened annotations using I've also made a quick reproduction: StackBlitz |
I think I found a solution to this issue. Highlighter tries to match textNodes to start, end positions in the annotation. I edited Highlighter.js > calculateDomPositionWithin from
}` to `
}` This has the added benefit of having relations snap to the correct nodes. |
RecogitoJS produces zero-width annotation spans in some cases. Don't do this.
Also see this related issue in the connections plugin:
recogito/recogito-connections#18
The text was updated successfully, but these errors were encountered: