Created
July 24, 2017 20:00
-
-
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
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
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