Why are the text-align buttons not appearing in my CK Editor in Drupal 7?
Asked Answered
B

2

16

Essentially, I've been back and forth through settings and configuration for using the CK Editor as well as re-installing it but for whatever reason the text-align buttons for this WYSIWYG editor are not showing up despite the fact they appear to be configured to do so.

I'm using Drupal 7.19 and CK Editor 7.x-1.12. For clarification, this is the CK Editor as stand-alone project, not a part of the WYSIWYG project.

Also to be clear, this is not a problem of the buttons not working or text-align properties being stripped out, the buttons are simply not there. Which is a problem for ease of use for my end-users.

Why would this be happening?

Brunabrunch answered 8/5, 2013 at 18:19 Comment(0)
E
24

Most likely you have downloaded a standard package which does not include justify plugin. Download the full package or add this plugin using online builder.

Engineer answered 9/5, 2013 at 11:53 Comment(1)
Thank you, I knew I must be missing something inane.Brunabrunch
C
3

This is due to the "Limit allowed HTML tags and correct faulty HTML" filter settings. As outlined in this issue, you must explicitly allow those classes on the p tag https://www.drupal.org/node/2649546

<p class="text-align-left text-align-center text-align-right text-align-justify">

Also this is for Drupal 8

Chortle answered 7/11, 2017 at 19:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.