I use CKEditor (WISYWYG editor) to edit text and HTML for my Drupal project. I want to edit an HTML table and try to horizontally align text in a table cell <td>
to the right.
My steps:
- select the text in the table cell
- right+click > Cell > Cell properties > Horizontal Alignment: Right.
When I am logged-in and I inspect the HTML I see <td style="text-align: right;">My text</td>
. But as soon as I am logged-out the HTML is stripped and I see only <td>My text</td>
(style="text-align: right;" disappeared).
I certainly need to align my text to the right in some HTML table cells.
Update:
- I use
Filtered HTML
- In
admin/config/content/formats/filtered_html
, I added the following settings (see screenshot):
plain text
,Filtered text
orFull HTML
. 2nd one you can find at by going atAdmin/Configuration/Content Authoring/Text Format
. Please add the screen shot for 2nd one if you can, withLimit allowed HTML tags
which is on same page. I think by this time you would have understood what is the issue and where to look..:)Filtered HTML
text format, CKeditor strippes off theinline style attributes
no matter what, If I will come to know I will let you know, If you come to know please you let me know...:(