In the media module, we hacked the WYSIWYG to override the alt and title attributes of images. I have created a patch to make that more generic, allowing us to override whatever fields are defined for a file type, at #835516: Add ability to edit file meta data and fields when embedded in WYSIWYG.

I like the wording that was used in that form's description at #1881152: Browser display cleanup, so I have created a patch to add the description to the alt and title attributes for the image file type. I will attach that patch momentarily.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aaron’s picture

Status: Active » Needs review
FileSize
1.08 KB
aaron’s picture

Oops! Here is a good patch.

aaron’s picture

Bump

gmclelland’s picture

I haven't tested this yet, but the patch looks very small, simple, and helpful.

KarlKedrovsky’s picture

Status: Needs review » Reviewed & tested by the community

I've tested this on a fresh install of the media_dev distribution and it worked just fine.

Dave Reid’s picture

Should we also update the existing field instances with these descriptions if they're still empty?

HaloFX’s picture

#2 also worked fine for me on a fresh install.

KarlKedrovsky’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
2.21 KB

Attached is an updated patch that updates existing instances of the alt and title text if they haven't been changed from the previous defaults.

HaloFX’s picture

Status: Needs review » Reviewed & tested by the community

#8 tested on Media_dev profile and works for me!

Dave Reid’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.