Jump to content

How to disable the image button


owzim
 Share

Recommended Posts

Hi,

I tried to disable it in my site/modules/InputfieldCKEditor/config-body.js

CKEDITOR.editorConfig = function( config ) {
    config.plugins.image = 0;
    config.plugins.pwimage = 0;
    console.log('CKEDITOR.editorConfig executed');
};

I made sure that the function is executed by that console.log call, but the image button is still there.

Screen Shot 2016-12-17 at 16.29.12.png

Thanks!

 

Edit:

Removing the plugin like suggested here, doesn't do it either:

CKEDITOR.editorConfig = function( config ) {
    config.removePlugins = 'image,pwimage';
    // OR: config.removePlugins = 'pwimage';
    // OR: config.removePlugins = 'image';
};
Link to comment
Share on other sites

Yeah, well ... :)

Thanks @Klenkes! That did it, wasn't aware of that. Sometimes I chose the complicated route over trying  more obvious options.

Those RTEs are dinosaurs anyway, my next PW installation will have Repeater Matrix and Ace-Fields only. :)

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...