Skip to content

Commit

Permalink
Make integration with context menu optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
Comandeer committed Dec 5, 2017
1 parent 2890507 commit e6d878c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/easyimage/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
}

function addMenuItems( editor ) {
if ( !editor.plugins.contextmenu ) {
return;
}

editor.addMenuGroup( 'easyimage' );
editor.addMenuItems( {
easyimageFull: {
Expand Down Expand Up @@ -391,7 +395,7 @@
};

CKEDITOR.plugins.add( 'easyimage', {
requires: 'imagebase,uploadwidget,balloontoolbar,contextmenu,dialog,cloudservices',
requires: 'imagebase,uploadwidget,balloontoolbar,dialog,cloudservices',
lang: 'en',

onLoad: function() {
Expand Down

0 comments on commit e6d878c

Please sign in to comment.