How to disable CKEditor context menu?

前端 未结 12 1416
梦毁少年i
梦毁少年i 2020-12-09 03:34

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条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 04:28

    Ckeditor 4.7.1

    CKEDITOR.editorConfig = function (config) {
      config.language = 'en';
      config.toolbar = "mini";
      config.removePlugins = 'elementspath,contextmenu,liststyle,tabletools,tableselection';
      config.disableNativeSpellChecker = false;
    }
    

    Ckeditor 4.8.0 ('elementspath' plugin no longer need to remove)

    CKEDITOR.editorConfig = function (config) {
      config.language = 'en';
      config.toolbar = "mini";
      config.removePlugins = 'contextmenu,liststyle,tabletools,tableselection';
      config.disableNativeSpellChecker = false;
    }
    

提交回复
热议问题