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.
Coming from #2303765: Make the default 'alt' attribute for Image fields required
But perhaps also related to #2297681: Make the "alt" attribute required in EditorImageDialog
Reproduce:
- Create a basic page
- Upload an image in ckeditor into the body field
- Don't set any alt text. You get a warning that it is a required field
- Now fill in some alt text and save
- you will be navigated to /editor/dialog/image/basic_htmleditor/dialog/image/basic_html instead of the edit view of the node
There is a test environment setup http://s793132f30f76007.s3.simplytest.me/.
Comment | File | Size | Author |
---|---|---|---|
#2 | Upload image drupal.dev_.png | 64.79 KB | undersound3 |
#2 | Create Basic page drupal.dev_.png | 39.83 KB | undersound3 |
Comments
Comment #1
mgiffordI confirmed this error after it was reported. You see the image on /editor/dialog/image/basic_htmleditor/dialog/image/basic_html so it looks like it was successful.. Sadly, you can't do much else.
Comment #2
undersound3 CreditAttribution: undersound3 commentedComment #3
Wim LeersConfirmed. Recently introduced. I have a strong suspicion I know the root cause. Will fix this next week hopefully.
Thanks!
Comment #4
undersound3 CreditAttribution: undersound3 commented@Wim
I was trying to debug this today at drupalcon but I am unsure where to go from this function
public function submitForm(array &$form, FormStateInterface $form_state)
in core/modules/editor/src/Form/EditorImageDialog.php
I think this is a bit above my head but if I can be of any help or you can point me in some direction let me know.
Comment #5
Wim LeersThis is a duplicate of the more generic #2347469: Rendering forms in AjaxResponses does not attach assets automatically.
Thanks for reporting!
Comment #6
kattekrab CreditAttribution: kattekrab commentedComment #7
kattekrab CreditAttribution: kattekrab commentedfixed by #2347469: Rendering forms in AjaxResponses does not attach assets automatically
Comment #8
mgifford