Hi,
How do I allow text alignment in my Filtered HTML text format?
I am using WYSIWYG with CKeditor.. I have enabled the alignment buttons and they work but the tags are being filtered..
The <p style="text-align: justify; "> tag is being changed to <p> when showing on the page.. The <p> tag is allowed but not the styling..
Any ideas?
Set your CSS to have classes for alignment, then add the classes to the <p> tag in the editor.
Joel
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Wipe_Out Sent: Wednesday, November 23, 2011 9:26 AM To: support@drupal.org Subject: [support] Text Formats : Allow text alignment?
Hi,
How do I allow text alignment in my Filtered HTML text format?
I am using WYSIWYG with CKeditor.. I have enabled the alignment buttons and they work but the tags are being filtered..
The <p style="text-align: justify; "> tag is being changed to <p> when showing on the page.. The <p> tag is allowed but not the styling..
Any ideas?
On Wed, Nov 23, 2011 at 4:25 PM, Wipe_Out wipe_out@users.sourceforge.net wrote:
Hi, How do I allow text alignment in my Filtered HTML text format? I am using WYSIWYG with CKeditor.. I have enabled the alignment buttons and they work but the tags are being filtered.. The <p style="text-align: justify; "> tag is being changed to <p> when showing on the page.. The <p> tag is allowed but not the styling.. Any ideas?
Have you installed html purifier[1]? Maybe it is the responsible of removing the style property.
[1] http://drupal.org/project/htmlpurifier
-- [ Drupal support list | http://lists.drupal.org/ ]
I prefer to create a new "Rich text" format for use with WYSIWYG and disable the HTML filtering. If you're using D6 the Better Formats module is a nice addition.
Neil
On Wed, Nov 23, 2011 at 10:50 AM, Christian Lopez clopez@emergya.comwrote:
On Wed, Nov 23, 2011 at 4:25 PM, Wipe_Out wipe_out@users.sourceforge.net wrote:
Hi, How do I allow text alignment in my Filtered HTML text format? I am using WYSIWYG with CKeditor.. I have enabled the alignment buttons
and
they work but the tags are being filtered.. The <p style="text-align: justify; "> tag is being changed to <p> when showing on the page.. The <p> tag is allowed but not the styling.. Any ideas?
Have you installed html purifier[1]? Maybe it is the responsible of removing the style property.
[1] http://drupal.org/project/htmlpurifier
-- [ Drupal support list | http://lists.drupal.org/ ]
-- Christian López Espínola Área de Proyectos
Emergya Consultoría Tfno: +34 954 51 75 77 Fax: +34 954 51 64 73 www.emergya.es -- [ Drupal support list | http://lists.drupal.org/ ]
Hi All,
Thanks for the replies..
@Joel - alignment works when using "Full HTML" format.. I don't want my general users using "Full HTML" though..
@Christian - No, haven't installed html purifier..
@Neil - I want the filtering in place because I don't want all users to have "Full HTML".. I just want them to be able to format the text to align left or right or justify..