epub.js
epub.js copied to clipboard
CFI not matched on SELECT event of Rendition in Mobile and Desktop
When I annotate by the selection, I get different CFI in Desktop and Mobile. I have used Firebase Firestore as annotation storage. I store CFI of selections. So, When again the book is re-rendered, an error is emitted. "No startContainer found for epubcfi(/6/6[id221]!/4/6,/1:40,/1:46)"
Can anyone kindly help me?
What CFI do you get in desktop and mobile? I find it very strange as we are also using epub.js on both desktop and mobiles and did not see such behavior.
-- Ori Idan CEO Helicon Books http://www.heliconbooks.com
On Tue, Nov 30, 2021 at 9:37 AM Ratul Sikder @.***> wrote:
When I annotate by the selection, I get different CFI in Desktop and Mobile. I have used Firebase Firestore as annotation storage. I store CFI of selections. So, When again the book is re-rendered, an error is emitted. "No startContainer found for epubcfi(/6/6[id221]!/4/6,/1:40,/1:46)"
Can anyone kindly help me?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/futurepress/epub.js/issues/1228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB43QC3BOYMHFI7GEDVQM3UOR5KZANCNFSM5JBB6CCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I get epubcfi(/6/4[Section0001.xhtml]!/12/6/2,/1:0,/1:8) in desktop and epubcfi(/6/4[Section0001.xhtml]!/4/6/2,/1:0,/1:7) in mobile for same selected content. For so, I can't sync annotation between cross devices(mobile and desktop web reader).