Problem/Motivation
Hi, thanks for this module!
I noticed that the module works fine if the widthcontrol setting is on, but that it fails if you turn it off. The editor shows a message that the block has an error and cannot be previewed, and the console reports:
react-dom.min.js?v=16.8.4:formatted:4299 TypeError: Cannot read properties of undefined (reading 'includes')
at DrupalContentEmbed.render (drupal-content-embed.js?rlqrvz:314:26)
Steps to reproduce
Turn off setting for widthcontrol on a content type / view mode
Proposed resolution
We need an additional check, PR coming.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3323089-disabling-widthcontrol.patch | 2.42 KB | vegardjo |
Issue fork gutenberg_content_embed-3323089
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 #3
vegardjo commentedComment #4
vegardjo commentedAdded a patch file as well
Comment #6
jidrone commentedMerged, thanks for reporting and helping with the fix.
Comment #7
jidrone commented