TransWikia.com

Text Align Buttons for Rich Text Fields

Craft CMS Asked on November 28, 2020

I’m trying to add the ability to be able to align text left, right and center to my rich text fields. I have had a look into it and can only find a version which works perfect for body fields but not rich content.

The plugin I tried to use for this is here: https://github.com/elliotlewis/Redactor-Extras

I also looked at redactorstyles which did the same thing.

Is there possibly a way to apply this to all fields or is there another way I could go about it in redactors standard.json?

2 Answers

Per their configuration docs, which also link to Craft's docs on the subject, it looks like you'd just need to add "alignment" to the plugins portion of one of your craft/config/redactor/ JSON config files.

i.e.

{
    "plugins": ["alignment"]
}

Then whatever config you end up modifying, you'll want to make sure that config is selected under that field's settings in Craft (Settings->Fields->Your Rich Text Field).

Correct answer by Brad Bell on November 28, 2020

In case anyone runs into this issue and finds the Redactor-Extras plugin isn't working, this plugin by Doug Thwaites worked for me: https://github.com/DougThwaites/CraftRedactorFontAlignment

Answered by Ruben Vreeken on November 28, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP