0

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

0

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...

| improve this answer | |
  • Note: Be aware, that this should be redone every time you update wygwam. – Diederik Mar 2 '15 at 12:55
  • Sweet ,that works a treat . Thanks very much – bhackett Mar 2 '15 at 16:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.