Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow or force editors to provide contextual alt text for images used in rich text fields #2836
When inserting an image into rich text using TinyMCE, the editor should be presented with 3 things:
Note that for 3. the CastleCMS implementation is to save the comment with the content item (not the image). We should follow the Castle implementation; if there are multiple images on the page, and more than one has comments, the comments should be concatenated.
Either the Alt Text OR the Alt Text Not Required field can be filled out, but not both. If the accessibility control panel (#2834) is set to force editors to enter contextual alt text, either the alt text field or the comment field is required.
Alt (alternative) text should be provided for all images used in rich text so that people using assistive technology like screen readers can understand the meaning of the image in the context of the surrounding text.
There are a few exceptions to this rule: