Steps to reproduce
1. Install patternkit and patternkit_example modules.
2. Go to /admin/config/user-interface/patternkit/json and choose a WYSIWYG editor, for example CKEditor:

3. Go to /admin/structure/block and add a patternkit block, for example "[Patternkit] Example", you will get this:

With an error in the JS Console:
Uncaught TypeError: b.ui.space(...) is null
I tested it on a vanilla Drupal 9.4.3, on Firefox and Chrome.
| Comment | File | Size | Author |
|---|---|---|---|
| Selection_002.png | 147.43 KB | rpayanm | |
| Selection_001.png | 24.34 KB | rpayanm |
Issue fork patternkit-3300014
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 #2
mariohernandez commentedAfter testing on a vanilla Drupal 9.4.3 and Patternkit Beta4, I confirmed this issue is caused by having ShadowDOM enabled in Patternkit's configuration page.
How to resolve this issue:
Try again and your WYSIWYG field should display as expected.
The fix for this issue will be available on future releases.
Comment #3
rpayanmThank you @mariohernandez that worked!
Comment #5
mariohernandez commentedComment #6
sluceroLooks good and should be ready for merging in.
Comment #8
sluceroMerged! Thanks for the work everybody!