Problem/Motivation
Embed 2.0.x is adding a CKEditor 5 base plugin and deriver for embed types (embed !38). Entity Embed has its own copy of the same logic in DrupalEntity and DrupalEntityDeriver. The deriver also loads every embed button, not only the ones using the entity embed type, so buttons from other modules get an Entity Embed toolbar item.
Proposed resolution
DrupalEntityextends embed'sEmbedCKEditor5PluginBaseand usesEmbedCKEditor5PluginDeriver, which only derives plugins forentitybuttons.- Delete
DrupalEntityDeriver. - Require
drupal/embed: ^2.0.
Remaining tasks
- Wait for embed !38 to be merged and released in embed 2.0.0.
- Check whether the change of derivative plugin IDs needs an update path for existing text formats.
AI disclosure
Generated with the help of an LLM. Claude Code found my unfinished change on an old checkout, rebuilt it on 2.0.x and drafted this summary; I wrote the original change, chose to move the logic into Embed, and reviewed the result.
Issue fork entity_embed-3643009
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