Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

To be able to remove individual highlights #1

Open
dlqs opened this issue Aug 19, 2019 · 0 comments
Open

To be able to remove individual highlights #1

dlqs opened this issue Aug 19, 2019 · 0 comments

Comments

@dlqs
Copy link
Contributor

dlqs commented Aug 19, 2019

One desired behaviour is to be able to remove individual highlights, e.g. when the user double-clicks on an already created highlight. Highlights are 1:1 with annotations which are many:1 with labels. Currently only entire labels can be removed, which causes all the label's highlights to be removed.

When an annotation is created, a "highlight" is made by wrapping the target text in <span style=...></span>, which is called highlightNode in the code. The dblclick event must be captured somehow and propagated to the parent component, but one issue here is that we cannot use Vue's emit because the node is not a Vue component, and Vue does not seem to be able to capture DOM event dblclick inside HighlightBox. I have not been able to get the two to work together.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant