Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable CKEditor context menu?

Tags:

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.

like image 770
Upperstage Avatar asked Feb 11 '10 18:02

Upperstage


People also ask

How do I remove plugins from CKEditor?

Remove plugin CKEditor provide configuration option where you can define plugins to be remove. https://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-removePlugins E.g. CKEDITOR. replace( 'editor', { removePlugins: 'basicstyles,justify' } );

Where is CKEditor config JS?

The main configuration file is named config. js . This file can be found in the root of the CKEditor 4 installation folder.


1 Answers

As of version 3.6.4, the other answers in this question don't work anymore. See bug #9284

The three plugins that need to be disabled (using the means discussed in this question), are contextmenu, liststyle and tabletools. So for example, using config files:

CKEDITOR.editorConfig = function(config) {
    /* Your config options */
    ...
    config.removePlugins = 'contextmenu,liststyle,tabletools';
};
like image 160
Alex Turpin Avatar answered Sep 20 '22 17:09

Alex Turpin