Answer the question
In order to leave comments, you need to log in
Clicking on an area in an iframe that is dynamically loaded?
There <div ref="viewer" id="area"></div>
is an iframe in which the epub book is dynamically loaded (I use the epub.js library for these people). When searching for a book, we get a list of matches. When clicking on an element from the list, we go to the page and select the word we are looking for using the library method
this.rendition.annotations.highlight('epubcfi(' + cfi + ')')
. Removing a selection is implemented usingthis.rendition.annotations.remove('epubcfi(' + this.cfi + ')')
. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question