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

How to remove all highlighted from highlighted tool? #26

Open
codeporan opened this issue Mar 10, 2022 · 2 comments
Open

How to remove all highlighted from highlighted tool? #26

codeporan opened this issue Mar 10, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@codeporan
Copy link

codeporan commented Mar 10, 2022

Screenshot from 2022-03-10 15-31-36
Hi there,

I am working with epub-viewer and after selecting all highlighted text . I want to remove all highlighted text from highlighted tool.

How to remove all highlighted from highlighted tool?

thanks

@altmshfkgudtjr
Copy link
Owner

Oh, nice idea. 👏

I think that feature is good. Let's take it into account this time.

@altmshfkgudtjr
Copy link
Owner

Hi there,

This feature requires a CFIRange of all currently registered highlights.
To do this, I tried to access the highlight list of rendition.annotations, but I can't access it because it is a private variable. Of course you could force access, but I don't think this is the right way to do it.

An alternative is:
When registering a highlight, remember that cfiRange, and remove it repeatedly via forEach.

Or is there a better alternative?

@altmshfkgudtjr altmshfkgudtjr moved this from In Progress to Hold in React-Epub-Viewer Project Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants