TinyMCE has a built-in contextmenu which activates when you right-click in the content editor area. I need to remove this menu due to the copy/cut/paste in the menu. It for an application specific reason and less of a technical reason.
I have attempted to remove the contextmenu plugin as well as attempt to catch the contextmenu event and trap it without luck.
The easy solution is to remove the contextmenu plugin in your tinymce init:
becomes
Commenting this line in
/plugins/contextmenu/editor_plugin.js
worked for me:If for any reason you use the non-minified js, comment this:
In version 5, context menu is built in the core. This has helped me:
Try to remove the complete script in plugins/contextmenu/editor.plugin.js (It's only 1 line so it's sufficient to put 2 slashes at the start).
It works for me, the contextmenu no longer appears.