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.
To disable the menu bar, the menubar option should be provided a boolean value of false .
The TinyMCE editor can be made responsive by using css media queries. Simply add css rules that set the width property of table.
Initialize TinyMCE 5 on any element (or elements) on the web page by passing an object containing a selector value to tinymce. init() . The selector value can be any valid CSS selector. For example: To replace <textarea id="mytextarea"> with a TinyMCE 5 editor instance, pass the selector '#mytextarea' to tinymce.
The easy solution is to remove the contextmenu plugin in your tinymce init:
plugins : "inlinepopups,insertdatetime,fullscreen,contextmenu",
becomes
plugins : "inlinepopups,insertdatetime,fullscreen",
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With