- Issue created by @JeroenT
- Open on Drupal.org →Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - @jeroent opened merge request.
- Open on Drupal.org →Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - Status changed to Needs review
over 1 year ago 9:27am 16 June 2023 - Status changed to Needs work
over 1 year ago 2:31pm 16 June 2023 - 🇺🇸United States smustgrave
Can the MR be updated for 11.x
Also steps to reproduce this? May be we need to add a test case.
- Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - @jeroent opened merge request.
- last update
over 1 year ago 29,499 pass - Status changed to Needs review
over 1 year ago 9:47am 19 June 2023 - 🇧🇪Belgium JeroenT 🇧🇪
AFAIS the media library embed button is the only CKEditor 5 button that opens in a dialog. But the media library js files add a dependency on drupal/core.ajax, so you can't reproduce this with this a different CKEditor5 plugin. I ran into this issue while running tests for the entity_embed module.
- Install Drupal using the minimal installation profile.
- Enable ckeditor5 and field_ui modules.
- Create a content type and add a body field using CKEditor 5.
- Move all fields, except title and body out of the form display (authored by uses Ajax, so adding this field will result in drupal.ajax being loaded.)
- Add a CKEditor5 plugin that calls the openDialog method. In my case I used Entity embed. So I enabled the entity_embed module and added the default "Node" embed button.
- Create a new node, click on the embed button. The dialog doesn't open.
- Status changed to RTBC
over 1 year ago 2:05pm 19 June 2023 - 🇺🇸United States smustgrave
I see no harm in loading the library. Will ask the committer if this needs a test though.
- Status changed to Postponed: needs info
over 1 year ago 3:42pm 19 June 2023 - 🇫🇮Finland lauriii Finland
I'm not sure why we would have to make this change in core. Shouldn't entity_embed set it as a dependency, not the core CKEditor 5 module? 🤔
- Status changed to Needs review
over 1 year ago 6:46pm 19 June 2023 - 🇺🇸United States neclimdul Houston, TX
I think it does use ajax though unless I'm reading this incorrectly:
https://git.drupalcode.org/project/drupal/-/blob/cb65aa9db0e42b0e0685fec... - 🇧🇪Belgium JeroenT 🇧🇪
I ran into this problem while using entity_embed. But ckeditor5.js is the file that calls Drupal.ajax. So this library should be added here.
- Status changed to Fixed
over 1 year ago 6:09am 20 June 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
🤯
How the hell did we miss this?! 😅🙈
Thanks, great catch!
Automatically closed - issue fixed for 2 weeks with no activity.