Problem/Motivation
This issue on Drupal core has a patch that changes the type of the JavaScript variable Drupal.ckeditor5.saveCallback from a function to a Map object. This requires changes on entity_embed code that uses it, otherwise the following error is shown:
An error occurred during the execution of the Ajax response: TypeError: Drupal.ckeditor5.saveCallback.has is not a function
Proposed resolution
This patch changes the how the Javascript code treats the Drupal.ckeditor5.saveCallback.
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3531672-22--3474069--entity-embed.patch | 37.37 KB | very_random_man |
| nested-dialogs-callback.patch | 33.12 KB | renanmfd |
Issue fork entity_embed-3474069
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mortona2k commentedThis worked for me.
Without the patch, I was unable to edit a the caption after adding an entity embed.
However this patch conflicts with https://www.drupal.org/project/entity_embed/issues/3410132.
Comment #4
mortona2k commentedMR 46 combines this patch and 3410132.
Comment #5
mortona2k commentedRebased on #3410132.
Comment #6
very_random_man commentedThis patch worked for me. Thanks!
I found this also clashed with this: https://www.drupal.org/project/entity_embed/issues/3531672
If anyone else is trying to fix both, I've attached a combined patch I made for both issues.