删除TinyMCE中的上下文菜单 [英] Remove the Context Menu in TinyMCE
本文介绍了删除TinyMCE中的上下文菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
TinyMCE具有内置的上下文菜单,当您在内容编辑器区域中单击鼠标右键时,该菜单会激活。由于菜单中的复制/剪切/粘贴,我需要删除此菜单。它是出于应用特定原因而不是技术原因。
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.
我试图删除contextmenu插件,并尝试捕获contextmenu事件并将其陷入困境。
I have attempted to remove the contextmenu plugin as well as attempt to catch the contextmenu event and trap it without luck.
推荐答案
简单的解决方案是删除你的tinymce init中的contextmenu插件:
The easy solution is to remove the contextmenu plugin in your tinymce init:
plugins : "inlinepopups,insertdatetime,fullscreen,contextmenu",
变为
plugins : "inlinepopups,insertdatetime,fullscreen",
这篇关于删除TinyMCE中的上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文