How to disable CKEditor context menu?

Viewed 23471

Does anybody know how to disable CKEditor's context (right click) menu? I would expect a configuration option, but I can't find one. I am using v3.1. Thanks.

12 Answers

You need to remove the contextmenu plugin. See here for 3.1.

Hold down the ctrl button while right clicking to by-pass the context menu and access spell checker etc.

In CKEditor 4.x, (I tested 4.2.2) you must do both:

CKEDITOR.replace('my_editor', { removePlugins : 'contextmenu' });

And

CKEDITOR.editorConfig = function(config) {
/* Your config options */
...
config.removePlugins = ''liststyle,tabletools,contextmenu'';
};

All three of those will automatically require contextmenu if you don't disable them.

Related