<![CDATA[ TinyMCE stripping empty alt attributes - My Forums]]> https://forums.modx.com/thread/?thread=45852 <![CDATA[Re: TinyMCE stripping empty alt attributes]]> https://forums.modx.com/thread/45852/tinymce-stripping-empty-alt-attributes#dis-post-265506 rethrash Jun 23, 2007, 09:00 AM https://forums.modx.com/thread/45852/tinymce-stripping-empty-alt-attributes#dis-post-265506 <![CDATA[Re: TinyMCE stripping empty alt attributes]]> https://forums.modx.com/thread/45852/tinymce-stripping-empty-alt-attributes#dis-post-265505

And you would choose not to add a description if the image was simply decorative. The alt attribute is supposed to provide the equivalent content to the image, so if the image serves no purpose other than decoration, you should have an empty alt attribute. For validation and accessibility reasons, you wouldn’t want to omit the alt entirely.

(You could argue that purely decorative images should be included as background images, but that’s not practical in a CMS).

Okay, so it’s something Moxiecode have introduced, wrongly in my opinion. I’m pretty certain some earlier versions of TinyMCE didn’t do this. Ah well. smiley]]>
PatrickSamphire Jun 23, 2007, 01:42 AM https://forums.modx.com/thread/45852/tinymce-stripping-empty-alt-attributes#dis-post-265505
<![CDATA[Re: TinyMCE stripping empty alt attributes]]> https://forums.modx.com/thread/45852/tinymce-stripping-empty-alt-attributes#dis-post-265504 Bravado Jun 22, 2007, 12:52 PM https://forums.modx.com/thread/45852/tinymce-stripping-empty-alt-attributes#dis-post-265504 <![CDATA[Re: TinyMCE stripping empty alt attributes]]> https://forums.modx.com/thread/45852/tinymce-stripping-empty-alt-attributes#dis-post-265503 rethrash Jun 22, 2007, 12:37 PM https://forums.modx.com/thread/45852/tinymce-stripping-empty-alt-attributes#dis-post-265503 <![CDATA[Re: TinyMCE stripping empty alt attributes]]> https://forums.modx.com/thread/45852/tinymce-stripping-empty-alt-attributes#dis-post-265502 ]]> Bravado Jun 22, 2007, 11:10 AM https://forums.modx.com/thread/45852/tinymce-stripping-empty-alt-attributes#dis-post-265502 <![CDATA[TinyMCE stripping empty alt attributes]]> https://forums.modx.com/thread/45852/tinymce-stripping-empty-alt-attributes#dis-post-265501
Basically, TinyMCE is stripping empty alt attributes (alt=""). It leaves alt alone when it’s not empty, though.

Anyone know how to fix that, because I want the option for empty alt to be available.]]>
PatrickSamphire Jun 22, 2007, 10:02 AM https://forums.modx.com/thread/45852/tinymce-stripping-empty-alt-attributes#dis-post-265501