Opened 10 years ago
Closed 10 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).
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.