Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Simple configuration file for default Redactor editor in Perch CMS. Minimal editor buttons. From http://forum.grabaperch.com/forum/06-28-2017-help-with-customising-redactor-toolbar-with-minimal-buttons
Perch.UserConfig.redactor = function(){
var get = function(profile, config, field) {
return { buttons: ['bold', 'italic'] }
};
var load = function(cb) {
cb();
};
return {
'get': get,
'load': load
}
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment