Uncaught CKEditorError: Cannot read properties of undefined (reading 'pencil') Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-Cannot read properties of undefined (reading 'pencil')
Steps to reproduce
- Find a form using CKEditor configured with entity embed.
- Embed a new entity or edit content with an existing embed.
- Click the embedded entity in the editor
Expected results
The tooltip displays with buttons for edit, Link entity embed, and Edit the embedded entity, eg.

Actual results
Proposed resolution
The tooltip does not show up. There is no option to edit the embedded entity.
The upgraded CKEditor5 library included with Drupal 10.6.x/11.2.x/11.3.x causes entity_embed to lose functionality.
See upstream issue
#3531672: Drupal 10.5/11.2 Compatibility (tooltip broken, cannot edit embedded entities)
and while we're at it, might as well patch for this entity_embed bug as well.
#3086162: Remove alt and title attributes from Entity Embed container div
Steps to reproduce
Install or upgrade to one of the mentioned WxT+ Drupal core versions.
Proposed resolution
Review and merge this wxt PR into 6.2.x prior to creating 6.3.x and then cherry-pick the fix back over to 5.6.x.
Remaining tasks
User interface changes
Restore lost functionality, contextual edit links in the wysiwyg editor ckeditor5 being the most important.
API changes
Updates to the entity_embed module via a fix/patch.
Data model changes
N/A
Comments
Comment #2
joseph.olstadI pinged the maintainers of entity_embed in Slack. davereid , one of the maintainers is looking into this upstream, with that said, I'll still push up a PR in a bit.
Comment #3
joseph.olstadComment #4
joseph.olstadComment #5
joseph.olstadComment #8
smulvih2I tested this and it works as expected! I pushed this to both 5.6.x and 6.2.x.
Comment #10
smulvih2Comment #11
joseph.olstadThanks @smulvih2