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 1


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.
    – Diederik
    Mar 2, 2015 at 12:55
  • Sweet ,that works a treat . Thanks very much
    – bhackett
    Mar 2, 2015 at 16:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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