Context/Custom menu on text select Ionic 2/3

When I long press on the text in my webview/app, I am getting context menu with following items “select”, “select all”, “web search”. See attached pic

image

How can I set my custom ones?

This is from the OS, in this case iOS.

Yes thats true. I wan override the default behavior or at least suppress it

This will probably let you disable it: http://stackoverflow.com/a/4407335

Thanks for quick reply. If I do user-select: none;, I wont be able to select text, which is a feature I really need.

The thing is, I need to select text then present the user with options to “Highlight”, “Bold”, “Italisize” instead of defaults (search, select all, look up, share etc)

1 Like

Did you manage to find a solution?

I am also looking for a similar action. Is it possible with Ionic?

Hi everybody, has anyone found a solution?

I end up building a custom functionality based in html and typescript, using the Gestures API for long press, swipe and tap over the words in a paragraph, each word is a html span tag that has events over those gestures.

Some links i used for gestures: