Hello,
So currently I have this in addons/plugins/editors/config.js:
Code
- Perch.UserConfig.redactor = function(){
- // LOAD PLUGINS
- var load = function(cb) {
- cb();
- };
- // SETTINGS
- var get = function(profile, config, field) {
- // PLUGINS
- // FORMATTING
- config.formatting = ['p', 'blockquote', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
- // BUTTONS
- config.buttons = ['bold','italic'];
- config.plugins = [];
- return config;
- };
- return {
- 'get': get,
- 'load': load
- }
- }();
Display Less
How can I specify different buttons and formatting, etc according to the size value I add to the textarea in the template? It was a really useful function to stop non-tech savvy editors from screwing things up!
thanks
iosman