When I insert an image into the post editor, select it and click the "align left" button, it automatically adds the alignleft CSS class to the image, like so :
<img
src = "http://www.example.org/media/myimage.png"
class = "wp-image-123 size-thumbnail alignleft"
height = "141"
width = "188"
/>
What I would like to achieve is that it also adds the HTML attibute align = "left", like that :
<img
src = "http://www.example.org/media/myimage.png"
class = "wp-image-123 size-thumbnail alignleft"
height = "141"
width = "188"
align = "left"
/>
Note : I am talking specifically about the align buttons that appear over an image when it is selected in the editor :
align
attribute is deprecated in HTML5. You sure want to use it?float
property.