Add note function of EPub reader

mucceerwope

New Member
I want to implement add note function to epub reader on mobile client. The expected interaction is just like iBooks. I want to know how to do it in program. I know epub is html based. So I can get selected object by javascript:window.getSelection(). But thing is not so easy. User may select a text including more than one html tag. For example I have a epub and the content is this is paragraph 1 this is paragraph2 . If user select "this is paragraph 1 this is" How could I save this structure? Is there any solution of adding note to epub?
 
Back
Top