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.
Hi,
When i work with entity_browser and entity_embed, i can select multiple entities to load in Ckeditor.
however, when I submit the entity_browser dialog after chosing my entities, entity_embed will handle the last selected entity and handle only this one.
If the entity browser allows selecting multiple entities , it must handle all of them.
Comment | File | Size | Author |
---|---|---|---|
#2 | 0001-2769895-entity_embed_multiload-Manage-multi-load-ent.patch | 21.35 KB | Mars0test |
Comments
Comment #2
Mars0test CreditAttribution: Mars0test at Alter Way commentedHere is a possible patch.
Comment #3
RenrhafI've encountered the same issue. I'm able to select many entities (of type media) in my entity browser but when I save the selection, only one of them is considered. However the patch does not seem to work for me, as there are many steps where only one entity can be considered.
Comment #4
Mars0test CreditAttribution: Mars0test commentedHy !
Sorry but I think with the many change of Drupal core and Entity Embed module this patch can't work. it work find for 8.2 if I remember :/
Comment #6
Wim LeersInteresting! Either Entity Embed should instruct Entity Browser to restrict selection to a single entity or Entity Embed should effectively create one
<drupal-entity data-entity-uuid="…" …>
tag for every selected entity.Comment #7
Wim LeersComment #8
Wim LeersComment #9
Wim LeersActually,
\Drupal\entity_embed\Form\EntityEmbedDialog::buildSelectStep()
contains:Which #2767573: [Follow-up] Use Entity browser's form element introduced. Either it wasn't properly tested there, or
entity_browser
broke something.The Media Initiative doesn't depend on Entity Browser anymore (with Media Library in core), so untagging for that.
Comment #10
Wim Leers