question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Display custom context menu entries for text selection

See original GitHub issue

Is your feature request related to a problem? If so, Please describe.

I’d like to be able to run my own code for the text I select on different webpages within the webview via the popup context menu. Currently the possible options there seems to be limited to whatever the default system options are.

Describe the solutions you came up with

Solutions would be to either:

  • enable adding of new entries to the default context menu
  • showing our own context menu made up only of defined entries

Additional context

Thanks for your time, and please let me know if you need any more information.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:7

github_iconTop GitHub Comments

1reaction
dzcpycommented, Mar 13, 2021

https://medium.com/flutter-community/inappwebview-the-real-power-of-webviews-in-flutter-c6d52374209d If you search for “Custom context menus” on this page, it’s possible to do similar things with https://pub.dev/packages/flutter_inappwebview in flutter. Maybe there’s a way to borrow some code there and make it work for React Native Webview?

0reactions
dzcpycommented, Mar 13, 2021

Any updates?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Display custom context menu entries for text selection #647
I'd like to be able to run my own code for the text I select on different webpages within the webview via the...
Read more >
Add menu item to windows context menu only for text selection
Someone know where can I add registry key for add some function to the right-click menu only when some text is selected? Such...
Read more >
Creating Custom Context Menu Entries - Maple Help - Maplesoft
Creating Custom Context Menu Entries You can customize the entries and actions on a context menu module using the ContextMenu package commands.
Read more >
How to customize context menu in Document Editor - Syncfusion
Checkout and learn about Customize context menu in JavaScript DocumentEditor control of Syncfusion Essential JS 2, and more details.
Read more >
Custom Context Menu Items - MicroStrategy
Custom Context Menu Items. Custom context menu items can be configured to allow for changes to properties specific to your visualization.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found