本文介绍了如何在CKEditor 4.3中删除ContextMenu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我很难从编辑器中禁用上下文菜单。例如,当用户单击图像时,我不想显示该上下文菜单,而是显示浏览器上下文。
I am having a hard time trying to disable the context menu from the editor. For instance when a user clicks on a image I don't want to show that context menu but the browser context.
我尝试添加以删除插件配置设置 contextmenu 但这没做。从我在这里看到的帖子中,摆脱上下文菜单的灵魂似乎改变了每个版本。
I tried to add to remove plugins configuration setting "contextmenu" but that did nothing. From the posts I seen here the soultion to get rid of the context menu seems to change every version.
推荐答案
在Ckeditor中经过测试 4.7.1
,为我工作:
Tested in Ckeditor 4.7.1
, works for me:
CKEDITOR.editorConfig = function (config) {
config.language = 'en';
config.toolbar = "mini";
config.removePlugins = 'elementspath,contextmenu,liststyle,tabletools,tableselection';
config.disableNativeSpellChecker = false;
}
这篇关于如何在CKEditor 4.3中删除ContextMenu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!