Forum

Thread tagged as: Question, Addons, Redactor

Redactor cms - can it be fitted with alignment plugin and font-size plugin

Redactor ships with the newest version. Does it come with the alignment and font-size plugins? If not, can the plugins for 3.1 be downloaded from the redactor website?

Latest version of the Perch software.

Carol Swinehart

Carol Swinehart 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, you can install Redactor 3 plugins. See "Custom configurations for default editors" https://docs.grabaperch.com/api/editors/

Hi Carol. Specifically for redactor 3 you will have to make some modifications to the example Drew posted above. Here is my config.js working fine with the properties plugin

Perch.UserConfig.redactor = (function() {
  var get = function(profile, config, field) {
    if (config.plugins.indexOf('properties') === -1)
      config.plugins.push('properties');
    return config;
  };

  var load = function(cb) {
    if (typeof $R.plugins.properties == 'undefined') {
      jQuery.getScript(
        Perch.path +
          '/addons/plugins/editors/redactor-plugins/properties.min.js',
        cb
      );
    } else {
      cb();
    }
  };

  return {
    get: get,
    load: load
  };
})();

Hope it helps