Problem/Motivation
When clicking the "Edit the embedded entity in tab" button it will always open the same entity. Which is the first selected entity. I have only tested with ckeditor 5.
Steps to reproduce
Embed two entities. Open the first one with the cog. Now open the second. The edit screen for the first entity will open
Proposed resolution
Change the javacsript code for the ckeditor 5 plugin . I will provide a patch.
Remaining tasks
Apply patch
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | fix_embedded_entity_open_wrong_entity.patch | 36.6 KB | wlagnadi |
| #2 | edit_the_embedded_entity_open_wrong_entity-3416277-2.patch | 35.96 KB | Bram Linssen |
| Screenshot 2024-01-22 at 16.07.29.png | 35.88 KB | Bram Linssen |
Issue fork entity_embed-3416277
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
Bram Linssen commentedComment #3
tichris59 commentedSame problem here, with drupal 10.2.2, entity embed 1.5
The patch #2 works like a charm. thanks Bram Linssen !
Comment #4
odenscAlso verified this patch works with Drupal 10.2.2 and entity_embed 1.5.
Comment #5
edmoreta commentedI confirm the patch works with Drupal
10.2.4andentity_embed 1.5Comment #7
dave reidTested and committed #2 to 8.x-1.x. Thank you so much for your contribution!
Comment #9
wlagnadi commentedit is not functional with Drupal 10.4.8 and entity_embed 1.5
Comment #10
wlagnadi commentedworked well when I built the js for build/drupalentity.js again and generated the new patch