Cordova plugin that hides standard copy/past menu and gives users an event to handle it and show custom copy/past menu
<plugin name="cordova-plugin-contextmenu" spec="https://github.com/vnc-biz/cordova-plugin-contextmenu"/>
Add the following code inside onDeviceReady
to listen for selected text:
var androidContextMenu = new cordova.AndroidContextMenu();
androidContextMenu.setCallback(function(text) {
console.log(text.selectedText);
});
It's also possible to enable/disable plugin logic.
androidContextMenu.setDismissMenu(true);
It's disabled by default.