Last active
August 29, 2015 14:07
-
-
Save sitepodmatt/5d9342558d5ad3b82ad8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var keys = Object.keys(CKEDITOR.instances); | |
for(var i=0;i<keys.length;i++) { | |
var key = keys[i]; | |
var config = CKEDITOR.instances[key].config; | |
if(config.toolbar.length > 0) { | |
config.toolbar = null; | |
CKEDITOR.instances[key].destroy(); | |
CKEDITOR.replace(key, config); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment