Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alt/title attributes should now appear on img tags even if uid linkin…
…g is not enabled, refs https://dev.plone.org/ticket/12322
- Loading branch information
1 parent
3f7f5db
commit 80241db
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80241db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use the description of the image as the "title" attribute:
I think it is better, and title is given if a description is missing
80241db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds great, can you make a commit/pull request?
80241db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ehm, no because I'm still not good on git. Can you do it, they're just one lines? :P
80241db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we did it, but rejected. Can we think to add an option, off by default?
80241db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note that #12322 has been reopened. Quoting the last comment:
"We have seen this working correctly with new images in our production 4.1.4 site, and our development 4.1.5 site. However, images that were migrated over from our previous Plone site show the alt attribute displaying the short name. I have tried changing the image, re-saving the image and the page, changing the title in the image itself and the image description in the TinyMCE editor. It always displays the short name in the alt tag. This is a problem as we have several thousand images on our site."