2

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?

  • Doesnt work for me any more. Is the "alignment" plugin not available any more in the latest redactor version? – Jan Oct 11 '17 at 17:58
4

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).

  • Just what I needed, turns out I was missing out that last step. Thanks! – Amy Aug 11 '17 at 11:40
  • 1
    This does not work as Craft does not include the Alignment plugin. P&T, please add this plugin. imperavi.com/redactor/plugins/alignment – AbbeyDesign Oct 19 '17 at 2:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.