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.

Files: 
CommentFileSizeAuthor
#8 2012868-alt-title-description-8.patch2.21 KBKarlKedrovsky
PASSED: [[SimpleTest]]: [MySQL] 874 pass(es).
[ View ]
#2 2012868-alt-title-description-2.patch1.08 KBaaron
PASSED: [[SimpleTest]]: [MySQL] 829 pass(es).
[ View ]
#1 2012868-alt-title-description-1.patch1.08 KBaaron
PASSED: [[SimpleTest]]: [MySQL] 829 pass(es).
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new1.08 KB
PASSED: [[SimpleTest]]: [MySQL] 829 pass(es).
[ View ]

StatusFileSize
new1.08 KB
PASSED: [[SimpleTest]]: [MySQL] 829 pass(es).
[ View ]

Oops! Here is a good patch.

Bump

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

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.

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

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

Status:Reviewed & tested by the community» Needs review
StatusFileSize
new2.21 KB
PASSED: [[SimpleTest]]: [MySQL] 874 pass(es).
[ View ]

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.

Status:Needs review» Reviewed & tested by the community

#8 tested on Media_dev profile and works for me!

Status:Reviewed & tested by the community» Fixed

Status:Fixed» Closed (fixed)

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