readium-js-viewer icon indicating copy to clipboard operation
readium-js-viewer copied to clipboard

How to load annotations when initializing chapters

Open wtfshine opened this issue 8 years ago • 0 comments

I have a question as follows: Each time the highlight is loaded, the label position is always offset, which is why for example: reader.on(Globals.Events.CONTENT_DOCUMENT_LOADED, function ($iframe, spineItem) { if (_initialized) { _highlightsManager.attachAnnotations($iframe, spineItem, reader.getLoadedSpineItems()); _highlightsManager.addHighlight(spineItem.idref,cfi,id,"test-highlight"); } else { _initializedLate = true; } });

wtfshine avatar Oct 09 '17 07:10 wtfshine