Has anyone found a way of making the alternative text field in the Wygwam images dialogue box mandatory.I have a large number of users and its something they always forget to do when adding images. Thanks
1 Answer
Open this file: THEMES_FOLDER/third_party/wygwam/lib/ckeditor/plugins/image/dialogs/image.js
Look for id:"txtAlt",
and replace it with id:"txtAlt",validate:CKEDITOR.dialog.validate.notEmpty("ALT text required"),
That should work...
-
Note: Be aware, that this should be redone every time you update wygwam.– DiederikCommented Mar 2, 2015 at 12:55
-