Forum

Thread tagged as: Question, Redactor

Redactor II - Remove some format options

1) Is it possible to remove some of the format options in the editor (I don't want h1,h2 or h5,h6)? 2) If it is, how is this done?

Neil Duddridge

Neil Duddridge 1 points

  • 4 years ago

Thanks Mike,

Yes, I've already seen that, but I haven't figured out where those settings need to be put.

Duncan Revell

Duncan Revell 78 points
Registered Developer

Hi Neil,

they go in _config.inc here:

perch > addons > plugins > editors > redactor > _config.inc

Thanks Duncan,

I will give that a try.

Hi Duncan,

Whereabouts in the _config.inc does it need to go?

I tried adding it in various places but the editor options in Perch remain the same as the default

Drew McLellan

Drew McLellan 2638 points
Perch Support

Inside the options {object} that is passed to the redactor() function call.

Neil Duddridge said:

Hi Duncan,

Whereabouts in the _config.inc does it need to go?

I tried adding it in various places but the editor options in Perch remain the same as the default

This would only show p, blockquote and h1.

self.redactor({
      formatting: ['p', 'blockquote', 'h1'],     
});