Image alignment
phicarre - May 27, 2008 - 09:50
| Project: | TinyMCE |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Under the dialog "Image properties", select "appearance" then "alignment".
Select "right" for example.
Look at the HTML code:
align="right" is missing

#1
I'm also having this problem. Didn't have this problem when I was using Drupal 5.
#2
I figured it out. It was adding it to the 'style' attribute (e.g. style="float: right;") instead of the 'align' attribute (e.g. align="right").
I added 'style' to the list of valid elements in tinymce/plugin_reg.php:
$plugins['advimage']['extended_valid_elements'] = array('img[class|src|alt|title|hspace|vspace|width|height|align|style|onmouseover|onmouseout|name]');Alternatively, if you want it to use 'align' instead, you can add this line to the plugin_reg.php file:
$plugins['advimage']['inline_styles'] = array('false');