epubjs-rn icon indicating copy to clipboard operation
epubjs-rn copied to clipboard

permanent highlight

Open veeyka opened this issue 6 years ago • 3 comments

hello the highlighted text is removing highlight after reopening book can we make a permanent highlight ?

onPress={(cfi, position, rendition)=> { this.toggleBars(); console.log("press", cfi); }} onLongPress={(cfi, rendition,cfiRange)=> { console.log("longpress", cfi); rendition.highlight(cfiRange, {}); }} onViewAdded={(index) => { console.log("added", index) }} beforeViewRemoved={(index) => { console.log("removed", index) }} onSelected={(cfiRange, rendition) => { console.log("selected", cfiRange)

                      rendition.highlight(cfiRange, {});
                  }}
                  onMarkClicked={(cfiRange) => {
                      console.log("mark clicked", cfiRange)
                  }}

veeyka avatar Dec 11 '18 13:12 veeyka

Did anyone find a way to do this?

minraza avatar Apr 10 '20 14:04 minraza

Anything on this?

DDushkin avatar May 13 '20 18:05 DDushkin

hi you can save parameter cfiRange in array and when reopening book call rendition.highlight with array of cfi list

mesismart avatar Aug 25 '20 10:08 mesismart