2

How to disable WYSIWYG Editor v1.1.1 Context menu I have tried this but dont works

CKEDITOR.editorConfig = function( config )
{
config.removePlugins = 'contextmenu';
//also try this below code
config.removePlugins = 'contextmenu,liststyle,tabletools';
};

Any idea?

4

1 に答える 1

0

モジュールを使用して設定をオーバーライドする

function MODULENAME_wysiwyg_editor_settings_alter(&$settings, $context) {
  if ($context['profile']->editor == 'ckeditor') {
    $settings['removePlugins'] = 'scayt,menubutton,contextmenu';
   }
}

MODULENAME を独自のモジュール名に置き換えることを忘れないでください。

于 2013-04-24T13:17:26.757 に答える