Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When inserting an image using the media plugin you get options to set the alt text and title text, but these attributes never end up on the image.
Comment | File | Size | Author |
---|---|---|---|
#4 | ckeditor-media_alt_title-2027287-4.patch | 1.83 KB | klokie |
#1 | ckeditor-media_alt_title-2027287-1.patch | 1.13 KB | rooby |
Comments
Comment #1
rooby CreditAttribution: rooby commentedThis patch fixes it for me.
Comment #2
klokie CreditAttribution: klokie commentedI rerolled the patch from #1 against the latest dev branch. Without this, image tags inserted by media_wysiwyg can be broken by including characters like single quotes in the "title" attribute.
Comment #3
rooby CreditAttribution: rooby commentedCould you post your reroll?
Comment #4
klokie CreditAttribution: klokie commentedSorry, thought I attached it last time. Here it comes...
Comment #5
rooby CreditAttribution: rooby commentedWith latest dev + the patch at #2159403: Make CKEditor plugin system modular and clean this patch applies cleanly but doesn't seem to work.
I will investigate more a bit later.
Comment #6
rooby CreditAttribution: rooby commentedSince #2542566: Remove Media integration the media code is no longer in this module, so moving to media_ckeditor.
The patch will need updating if it is still required.
Comment #7
rooby CreditAttribution: rooby commentedAs far as I can tell it is still an issue and the patch doesn't apply or easily reroll.
Comment #8
brockfanning CreditAttribution: brockfanning commentedI posted a patch in the Media queue (#2416701-30: WYSIWYG Alt and Title overrides do not override) which, although I haven't gotten any feedback on it, does fix the problem for me. Regardless, since I don't believe this is a Ckeditor-specific problem, we should probably focus efforts on the issue linked above.