Skip to content
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

New feature: Ability to edit the span of text selected when editing an annotation #298

Open
lucaju opened this issue May 4, 2021 · 0 comments

Comments

@lucaju
Copy link
Contributor

lucaju commented May 4, 2021

Gives the user ability to correct text selection with precision, especially when the document runs through NERVE where text selection is done automatically.

Expected Behaviour

When editing an annotation:

  1. Show anchors at the start and end of selection.
  2. User can correct the span of text in the selection moving the anchors back and forward.
  3. Use the the new text span to anchor the annotation

Current Behaviour

There is currently no way to correct the selection besides removing the tag and added it again.

Possible Solution

Use the the DOM Selection API to manipulate the start and end anchors.

  • Warning: Selection API is still in its early stages of development.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant