Opened 4 years ago

Closed 4 years ago

#12799 closed Bug (invalid)

Cannot override default editorConfig with in-page config

Reported by: Sergiy Kuzmenko Owned by:
Priority: Normal Milestone:
Component: UI : Toolbar Version:
Keywords: Cc:

Description

Upgrading from 4.3.3 to 4.6.6 broke my editor configuration because of the new default config options set in config.js. In the new default config file we now have something like:

CKEDITOR.editorConfig = function( config ) {
	config.removeButtons = 'Underline,Subscript,Superscript';
};

As per documentation I would expect to override this with one of the following:

1) Disabling custom config file completely:

CKEDITOR.replace("mytextarea", {customConfig: ''};

2) By providing in-page configuration:

CKEDITOR.replace("mytextarea", {removeButtons: ''};

3) By accessing config object directly:

// either globally:
CKEDITOR.config.removeButtons = "";
// or on editor instance:
editor.config.removeButtons = "";

But none of these works. Not sure if it's a bug or a feature. If it's a feature what is the proper way to deal with default settings? (Other then modifying the default config.js because I don't want to change it every time editor is upgraded).

Change History (1)

comment:1 Changed 4 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

What you are showing us is config for standard editor.

Both ways with customConfig or removeButtons will work provided that you have these plugins available in your build and that you have cleared or refreshed browser's cache.

Please make sure that these plugins are available. You should have either download them manually or use http://ckeditor.com/builder.

I'm closing this issue as invalid because from what I can see it works as expected.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy