Install
Works with Drupal: ^11.3 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This release adds Drupal 12 support and fixes several CKEditor 5 problems: the widget and link toolbars work again on CKEditor 5 v45 and later, embedded entities stay in list items, and button labels no longer show HTML entities. Display plugins can now use the #[EntityEmbedDisplay] attribute.
Before updating: this release requires Drupal 11.3 or later and Embed 8.x-1.12 or later. Drupal 10 is no longer supported; sites on Drupal 10 should stay on 8.x-1.7.
Other changes: the embed dialog can be submitted in any workspace, the "Edit the embedded entity" link returns "Page not found" instead of an error for deleted entities, and a PHP 8.5 deprecation is fixed. The functions entity_embed_filter_format_edit_form_validate() and template_preprocess_entity_embed_container() moved to EntityEmbedHooks.
Contributors (86)
dave reid, joegraduate, liam morland, jmagunia, sivaji_ganesh_jojodae, juancec, LeoAlcci, jmizarela, adaucyj, gabrieldv, avpaderno, ankithashetty, atul_ghate, dharti patel, vivek panicker, nikolay shapovalov, a.aaronjake, coffeemakr, acbramley, viren18febs, dasj19, tolstoydotcom, edysmp, charlieweb82, heddn, dalin, mikelutz, stacypendell, odensc, rgpublic, alexanderpatricio, smithmilner, paranojik, plach, danflanagan8, edmoreta, mortona2k, baluertl, ericgsmith, rajab natshah, rford, tlo405, smustgrave, m4olivei, jatingupta40, butterwise, bkosborne, rossb89, jedgar1mx, karenann, jannakha, p-neyens, mmenavas, fenstrat, ethant, richardcapricorn, caspervoogt, justcaldwell, marcelovani, owenbush, tky, sun-fire, weynhamz, phenaproxima, johnlutz, eric_a, oknate, jhedstrom, tobiasb, tjmoyer, cgmonroe, jorgegc, drcolossos, neclimdul, wim leers, alison, swentel, scoff, komejo, purefoxy, gregrholden, fabiansierra5191, peterwcm, plato1123, Anonymous, anybody
Changelog
Issues: 14 issues resolved.
Changes since 8.x-1.7:
Bug
- fix: #3577405 Using null as an array offset is deprecated in PHP 8.5
- docs: #3499567 Mark nullable parameters in docblocks
- fix: #3402443 Return a 404 when an embedded entity can't be edited
- refactor: #3639285 Convert the test modules' hooks to OOP hooks
- fix: #3618174 Add array return type to EntityEmbedTwigExtension::getFunctions()
- fix: #3424184 Keep embedded entities in list items in CKEditor 5
- fix: #3098156 Allow the embed dialog to be submitted in any workspace
- fix: #3402255 Stop double-escaping button labels in CKEditor 5
- fix: #3531672 Restore CKEditor 5 widget and link toolbars
- test: #3581444 Fix tests and require Drupal 11.3 and Embed 8.x-1.12
- fix: #3069448 Array to string conversion for Media Image
- fix: #3580968 Remove VERSION from libraries.yml
Task
- fix: #3305083 Fix ESLint errors
- fix: #3554612 Support attribute discovery in EntityEmbedDisplayManager