TinyMCE removes empty image alt attributes

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Jonny
Forum Members
Forum Members
Posts: 77
Joined: Sun Sep 24, 2006 10:49 am

TinyMCE removes empty image alt attributes

Post by Jonny »

The site I'm working on at present has many pages featuring images that have been given empty alt attributes i.e. alt="", allowing the pages to pass W3C verification (as specified here: http://www.w3.org/QA/Tips/altAttribute)

Editing a page with TinyMCE automatically strips out the empty alts.

Anyone know how this function can be disabled?
cyberman

Re: TinyMCE removes empty image alt attributes

Post by cyberman »

The solution is very easy - fill your alt attributes.

It's much more userfriendly, especially for handicapped users. W3C verification is only a guide for a user friendly layout. It makes not sense if you try to bypass this.
Jonny
Forum Members
Forum Members
Posts: 77
Joined: Sun Sep 24, 2006 10:49 am

Re: TinyMCE removes empty image alt attributes

Post by Jonny »

Yes I agree, alt tags should always be filled out when a description of the image concerned will be of use to a visitor using a screen reader or other assistive technology, but the WCAG guidelines do not recommend this for decorative images such as bullets, rules etc. (Obviously, it's best to avoid using images of this kind in markup wherever possible.)
cyberman

Re: TinyMCE removes empty image alt attributes

Post by cyberman »

The problem is discussed to in TinyMCE forum (without solution)

http://tinymce.moxiecode.com/punbb/view ... hp?id=6024

Maybe it helps to downgrade to TinyMCE 2.0.4 module  ::) ...
Jonny
Forum Members
Forum Members
Posts: 77
Joined: Sun Sep 24, 2006 10:49 am

Re: TinyMCE removes empty image alt attributes

Post by Jonny »

Thanks for the link. I'll keep an eye on that thread.
Post Reply

Return to “CMSMS Core”