- Issue created by @lmoeni
- First commit to issue fork.
- 🇺🇸United States braican Boston
I'm unable to replicate this issue in a minimal Drupal 10.2.7-dev install (also tested with Drupal 10.4.0-dev). I'm not seeing any console errors when interacting with the "Toggle caption on" or "Override media image alternative text" after following the reproduction steps.
- 🇩🇪Germany lmoeni
I just checked it with 10.2.7-dev and I'm still getting the error. I'll expand and refine the steps.
Not sure if it's relevant but I used the Claro backend theme. - 🇮🇳India arunkumark Coimbatore
Confirming the issue and able to replicate the issue. Please find the screen capture.
- 🇮🇳India sourav_paul Kolkata
unable to replicate this issue by following the mentioned steps, in drupal 10.2.2.
here I'm attaching image for reference
- 🇬🇧United Kingdom aaron.ferris
Can reproduce on 10.2.6 with the opening post reproduction steps, also using Claro as the admin theme.
- 🇳🇿New Zealand quietone
Fixes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies. Also, 10.2 is in security mode now.
- 🇺🇸United States sean_fremouw
I got very similar stack trace:
Uncaught CKEditorError: Cannot read properties of null (reading 'is') at at.viewToDom (ckeditor5-dll.js?v=44.0.0:5:254805) at v (drupalMedia.js?ssmmkd:1:12453) at k._showForm (drupalMedia.js?ssmmkd:1:16293) at Q.<anonymous> (drupalMedia.js?ssmmkd:1:15098) at Q.fire (ckeditor5-dll.js?v=44.0.0:5:725118) at l.<anonymous> (ckeditor5-dll.js?v=44.0.0:5:541422) at Te.s (ckeditor5-dll.js?v=44.0.0:5:530769) at Te.fire (ckeditor5-dll.js?v=44.0.0:5:725118) at HTMLButtonElement.t (ckeditor5-dll.js?v=44.0.0:5:735357)
- 🇺🇸United States sean_fremouw
After further exploration, for me at least, this occurs when I leave my cursor in the caption text box. If I leave the caption on but reselect the media item (so the border around the image and caption changes from yellow to blue) the alt text button works. It makes sense from a programmatic view point that this would happen since the alt text is a property of media item and not the caption. However, from a user perspective it just seems like the button isn't working. If there could be a message to the user that the media item needs to be in focus or, better yet, the functionality could determine the media object to which the caption belongs and act on it, that would be great.