Forum

Thread tagged as: Addons, Third-party, Redactor

Add font size button to Redactor toolbar

Is there any way to add a font size button option to the Redactor editor toolbar? I've done some searching on Google and came up with these possible solutions, but can't seem to implement them.

https://github.com/html5cat/redactor-js/issues/58

https://github.com/johnsardine/redactor-plugins/blob/master/fontsize.js

Any guidance or help would be much appreciated.

Clark B

Clark B 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can edit the redactor config in the file:

 perch/addons/plugins/editors/redactor/_config.inc 
Clark B

Clark B 0 points

Thanks, but I'm not sure what code I would put in the actual "_config.inc" file. Can you or someone else on the forum provide any guidance?

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you're not familiar with implementing changes to Redactor, you may be better asking Redactor support rather than Perch support.

Clark B

Clark B 0 points

Okay. I'll give it a shot. I was just hoping another Perch user had already added the font size option to the toolbar and could guide me through the modification. When I go on the Redactor support site, do I need to mention that the editor is an add on in Perch using the "_config.inc" file?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

No, the config.inc file is where you would put the changes suggested. We don't do anything odd with these editors, we just package them for convenience. You could create your own package if you wanted rather than use ours. Instructions for doing so are in our docs. See Using a Custom Editor here https://docs.grabaperch.com/docs/customizing-perch/installing-editors/