如何在Android中的WebView中永久突出显示文本?
我正在为 Android 手机开发 ePUB 阅读器。
我可以使用 WebView & 将文本复制到剪贴板剪贴板管理器。但我真正想做的是永久突出显示该选择。我看到一些文章。他们建议让 WebView 处于选择模式 &使用 JavaScript。
如何让 WebView 处于选择模式?如果我使用 JavaScript 并修改文本,我可以将 JavaScript 应用的这些更改永久保存在相应的 ePUB 文件中吗?如果是的话怎么办?
I am developing an ePUB reader for Android phones.
I can get text copied to the ClipBoard using WebView & ClipBoardManager. But what I really want to do is highlight the selection permanently. I saw some articles. They suggested to get WebView in selection mode & to use JavaScript.
How can I get WebView in selection mode? If I go with JavaScript and get the text modified, can I save those changes applied by the JavaScript permanently in the corresponding ePUB file? If yes then how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论