Image description not showing when image is added to a text block

Bug #1737995 reported by Sam Taylor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Wishlist
Unassigned

Bug Description

When adding an image to Mahara there is the option to include a description.
When the image is added to a text block there is no way for the image description to made available either as text under the image, or when you hover over the image.

I'm on version 17.04 using Chrome.

Revision history for this message
Robert Lyon (robertl-9) wrote :

Hi Sam,

Currently if you add an image to a page via the 'Image' block you can select whether you want to display the description/caption as well via the 'Show description' option.

However, currently, when adding an image to the text block, via the editor's 'Insert/edit image' button there is no option to include the description. As it is a text editor currently one could just copy/paste in the description anyway.

But in the future I reckon we need to have either:
- An option added under the 'Image formatting options' to select so that description plus image is added to editor on save
- Or simply let images with descriptions copy to editor by default and let user delete description if they don't need it.

I'll mark this as a wishlist item

Cheers

Robert

Changed in mahara:
importance: Undecided → Wishlist
milestone: none → 18.04.0
status: New → Confirmed
Revision history for this message
Rebecca Blundell (rjb-dev) wrote :

The description is pulled into the page as the alt tag

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Option 2 sounds a bit more flexible as it would allow you to change the description if needed rather than always having to take the one that's in the files area.

tags: added: accessibility
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 18.04.0 → 18.10.0
Changed in mahara:
milestone: 18.10.0 → none
milestone: none → 19.04.0
Changed in mahara:
milestone: 19.04.0 → none
Revision history for this message
Dianne Tennent (dianne-t) wrote :

To test:
- Is the image description added as alt tag?
- When you change the description does this also change the alt tag?

For embedded images in text box (tinymce)

Changed in mahara:
assignee: nobody → Dianne Tennent (dianne-t)
Revision history for this message
Dianne Tennent (dianne-t) wrote (last edit ):

Currently, the image description is added as an alt tag.

However, when the description is changed in the files section, the alt tag that has been included with the embedded image in the text block is not updated with the new text.

TODO?
- enable alt tag to dynamically update when this is changed in the files area
- enable descriptions to copy to the editor by default when embedding images in the text block type. Account holder can delete/edit this description in the editor as desired.

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote (last edit ):

This turns out to be a bit more complex than upon quick reading.

There is no clear distinction between alt text and image caption and we seem to be wanting to use the description field that is in the 'Files' area for both of these two things. However, these two can diverge and at times maybe even should diverge because the alt text is to describe the image, e.g. 'Two women dressed in warm jackets walk along a deserted beach', whereas the caption puts the image into the context of the surrounding text, e.g. 'Sandy and Mel discuss their latest project while out and about'.

Currently, the description is used both for alt text and caption when an image is added in the 'Image' block. It is updated automatically when the description is changed for the file.

The description *is* pulled into a text block when the image is added via TinyMCE as alt text. In contrast though to the image block, it is not added as title text.

The questions that are open right now as far as I can see are the following, also taking WCAG 2.1 into consideration before thinking about how to solve that technically:

1. Should alt text and caption always be the same or should they be able to diverge?
2. Do we need a title tag for images besides alt text and caption or is the title tag essentially the caption?
3. Do we want the alt text to be able to be changed depending on where the image is displayed or should the alt text always be the same?
4. Do we want to be able to display a different caption for an image when it is displayed in pages? Scope limitation: for when an image is embedded in text, but not when it's used in an 'Image' or 'Image gallery' block.
5. Should a portfolio author be able to decide whether to display alt text?
6. Should a portfolio author be able to decide whether to display a caption?
7. How would any changes impact the 'Image' block and the 'Image gallery' block?

Changed in mahara:
assignee: Dianne Tennent (dianne-t) → nobody
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

In bug #1982294 we tackle the difference between alt text and title text for an image. The wishlist item here is separate from it and could be taken on once we have that separation to also make it more easily available when selecting an image for a text block.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.