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.
- 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.
- I use
admin/config/content/formats/filtered_html, I added the following settings (see screenshot):