Allow disabling copy | look up | share menu on text select.
See original GitHub issueIs your feature request related to a problem? If so, Please describe.
When user long-presses text inside react-native-wrbview
the default copy | look up | share
menu appears.
Describe the solutions you came up with
I tried injecting the following CSS into the HTML page.
*:not(input):not(textarea) {
-webkit-touch-callout: none !important;
-webkit-user-select: text !important; // I want to allow users to select text
}
but the copy | look up | share
menu still apprears.
Additional context
it would be nice to allow disabling
or customizing
this menu.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Allow disabling copy | look up | share menu on text select. #934
When user long-presses text inside react-native-wrbview the default copy | look up | share menu appears. Screenshot 2019-10-06 at 12 23 57 pm....
Read more >How to Enable/Disable | Show mini menu when selecting text ...
Hello FriendsIn this Video I Am Gonna Tell You That How to Enable / Disable | Show mini menu when selecting text in...
Read more >How to Enable/Disable 'Show mini menu when selecting text ...
In this Video, I will show you "How to Enable / Disable 'Show mini menu when selecting text in PDFs' in Edge Browser...
Read more >How to Disable Text Selection, Copy, Cut, Paste and Right-click
How to Disable Copy, Cut, and Paste with JavaScript/jQuery. ... You can allow text selection, but prevent copy and cut functions using the...
Read more >How to Enable & Disable Mini Menu on Text Selection in Edge
How to Enable & Disable Mini Menu on Text Selection in Microsoft Edge ... Copy, let you copy the text from PDF; Search...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was able to hide the menu using this solution: How do I disable default text selection behaviour in a WKWebView
update the code in this file:
node_modules/react-native-webview/ios/RNCWebView.m
I’m using patch-package to add this patch in
react-native-webview v7.4.0
+1, I hope it can be built-in in this project