Clearing a webview selection
I am updating text in a webview with javascript. The problem is that if the user has a currently active selection, that selection remains when the text is updated. I'd prefer to clear the selection if the text changes, or on a copy. I tried to use document.selection.clear() or document.getSeletion().clear(), but didn't have any luck. Any ideas?
1 Answer
-
Hey Damien, did you find a solution to clearing the selection?