How to constantly select text in WebView on Android?

I am developing an ePUB reader for Android phones.

I can copy text to ClipBoard using WebView and ClipBoardManager. But I really want to emphasize the choice forever. I have seen several articles. They suggested getting WebView in select mode and using JavaScript.

How can I get a webview in select mode? If I go through JavaScript and change the text, can I save these changes used by JavaScript forever in the corresponding ePUB file? If so, how?

+3
source share

Source: https://habr.com/ru/post/1666874/


All Articles