rangy icon indicating copy to clipboard operation
rangy copied to clipboard

Callback on highlighter deserialize

Open axul opened this issue 8 years ago • 1 comments

I'm using rangy highlighter on a view with a lot of content, and I also have a view with a list of selections made by the user. With my app, I can tap or click on a selection within the list, and It will take me to the text view and scroll down to the selection I choosed. The thing is I can't scroll down to my selection if rangy is still deserializing after the view loads. It will be nice implementing a callback to highlighter.deserialize() (and other heavy funcs) so when the all the highlights are in the text, the page can scroll down to the chosen highlight.

axul avatar Mar 05 '16 04:03 axul

pull request with the callback https://github.com/timdown/rangy/pull/380

axul avatar Mar 12 '16 00:03 axul