bernardR Member Licensed User Longtime User Jul 12, 2017 #1 Hello, I want to modify or replace the CAB copy/paste when selecting text in webview by a customized bar. I am not capable to follow this link If it is not possible, how detect the event when the CAB copy/paste is opened ? Thanks
Hello, I want to modify or replace the CAB copy/paste when selecting text in webview by a customized bar. I am not capable to follow this link If it is not possible, how detect the event when the CAB copy/paste is opened ? Thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 13, 2017 #2 See this tutorial: https://www.b4x.com/android/forum/threads/custom-context-menu-for-text-selection.81596/ Upvote 0
See this tutorial: https://www.b4x.com/android/forum/threads/custom-context-menu-for-text-selection.81596/
bernardR Member Licensed User Longtime User Jul 13, 2017 #3 Thank you Erel I have add a function javascript for getSelection in the webview. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 14, 2017 #4 It is worth posting it... Upvote 0
bernardR Member Licensed User Longtime User Jul 14, 2017 #5 Ci joint l'adaptation. The code javascript returns le selected text, startoffset and endoffset. Attachments webviewSelection1.zip 9.8 KB · Views: 232 Upvote 0
FrenchDeveloper Member Licensed User Longtime User Aug 2, 2017 #6 Thank you for this solution. Is there a way to extract the selected text in webview without injecting javascript ? Thank you in advance Upvote 0
Thank you for this solution. Is there a way to extract the selected text in webview without injecting javascript ? Thank you in advance
bernardR Member Licensed User Longtime User Aug 11, 2017 #7 Désolé, je n'ai pas cherché mais ça me semble difficile sans détourner le 'contextmenu' Upvote 0