I'm trying to create an iBooks like experience, where users can highlight text within a document. To do that, I'm using a UIWebView with my document in an HTML format.
I've figured out how to capture the initial selection highlight, but can't make it so the user can edit or change their highlight once made.
I'm hoping to pre-define a javascript Selection DOM Object with the Range of the highlight and then programmatically enter 'selection mode'. It seems that you can only enter selection mode by long-pressing on a piece of text, and then automatically creates the Selection DOM Object for you.
How do you programmatically enter selection mode with a UIWebView?