Skip to content

Instantly share code, notes, and snippets.

@clivewalker
Created July 24, 2017 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clivewalker/7f9fb40ca1c351e774c54c32d7f10577 to your computer and use it in GitHub Desktop.
Save clivewalker/7f9fb40ca1c351e774c54c32d7f10577 to your computer and use it in GitHub Desktop.
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