Hello all,
Does anyone know is it possible to have an auto alt tag when uploading image?
If user forget to fill alt field, is there any plugin, or any way to FCK complete this by some kind of automation?
E.g. to parse image original name and to save it as alt tag for this image?
Does anyone know is it possible to have an auto alt tag when uploading image?
If user forget to fill alt field, is there any plugin, or any way to FCK complete this by some kind of automation?
E.g. to parse image original name and to save it as alt tag for this image?
Re: Auto alt tag on images
Anyone?
Re: Auto alt tag on images
The alt attribute should give additional information on the image. Telling someone the filename of the image isn't helpful - the browser will already know it, and will probably read it out in any case if no "alt" is present - and most image filenames are pretty misleading.
Now, forcing the user to fill in the alt tag might be desirable.
Re: Auto alt tag on images
I dont want to cheat and i am not lazy. I am talking about friend who works with FCK editor and often forget to fill alt tag manually. So i am trying to help here, not to cheat or whatever...
I dont know how you got that impression without asking me if i want to cheat.. No, i just want to help my friend, and to bring some idea up.
So if i had idea and this is not good idea that does not mean that i am lazy or sum..
However, main idea is to have alt tag filled, even if user(not me) forget to fill it.
How user can be forced to fill it? (Please do not tell me that i need tostand behind him with a stick!)
Any idea about this? Yes i know about validation, but i would like to know where and how implement validation on fck editor.
Re: Auto alt tag on images
Apologies for the tone of my previous post. It wasn't very appropriate!
I had a look and it's quite easy to implement a validation error if the alt text is blank (forcing the user to fill it in, which would be the correct thing to do for accessibility purposes).
You need to edit the file: fckeditor/editor/dialog/fck_image/fck_image.js
Around line 200 you see this function:
Edit this so you have:
This will prevent the user from leaving the field blank.
Re: Auto alt tag on images
Thank you for the hint
well, i did a slightly different, but basicly same thing. BEcause of multilanguage support i did like bellow:
Thank you for point me to the right direction
Re: Auto alt tag on images
That's the better way to do it. I thought about mentioning the language file, but it doesn't really matter so much for a personal mod.

On the other hand, I think this'd be a good piece of validation to add into the editor permanently, in which case it would need translating and adding to all the language files.