Skip to content

Instantly share code, notes, and snippets.

@rossriley
Last active April 3, 2019 10:01
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rossriley/c46fb1074e6000070380 to your computer and use it in GitHub Desktop.
Save rossriley/c46fb1074e6000070380 to your computer and use it in GitHub Desktop.
var CKEDITORPluginExtras = false;
if (typeof(CKEDITOR) != 'undefined' ) {
CKEDITOR.on('instanceReady',function(event, instance){
if (CKEDITORPluginExtras) {
return;
}
var config = event.editor.config;
CKEDITOR.instances.body.destroy();
// Do any manipulations you like on config here
//
//
CKEDITOR.replace('body', config);
CKEDITORPluginExtras = true;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment