Brandon Tate
Brandon Tate
Did you reference the necessary javascript files in your html files?
There are some javascript files in the example project that you need to use in order for this to work. The web view has a javascript interface that communicates with...
Just pushed a change with this in it. I did the string casting in the javascript so it doesn't matter what you send to it. Give it a shot.
Are you using the latest version with the latest javascript, etc? I have a galaxy tab 2 in front of me and it works fine.
It gets called on my end. What version of android are you running? I'm on 4.1
Wrap your javascript in a try catch block with the error method and see if anything prints. try{ // Your Code } catch(err){ window.TextSelection.jsError(err); } That should log an error...
Thanks for that. I just updated the class on the master branch with the @JavascriptInterface annotation.
I've never had a problem with selections involving image tags. If you attach the html I'll try and take a look. But I haven't had a ton of time to...
Try this, var highlightRange = rangy.deserializeSelection(selectedrange); var range = rangy.getSelection();
Can you send me some code? Not sure what you're doing to get that error.