Steps to reproduce

1. Install patternkit and patternkit_example modules.
2. Go to /admin/structure/block and add this patternkit block "[Patternkit] Example", the image field won't work:
a

I tested it on a vanilla Drupal 9.4.3, on Firefox and Chrome.

CommentFileSizeAuthor
Selection_003.png53.44 KBrpayanm

Issue fork patternkit-3300288

Command icon 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

rpayanm created an issue. See original summary.

rpayanm’s picture

Status: Active » Needs review

I was able to add an image following this example:
https://json-editor.github.io/json-editor/multiple_upload_base64.html

Please review the patch.

johnle’s picture

Hi @rpayanm,
I am curious would enabling the module patternkit_media_library work for this?

rpayanm’s picture

Hi @johnle, I installed the patternkit_example and patternkit_media_library module without this patch, which did not work.

rpayanm’s picture

It is weird because I tested the setup of my last comment and it works on the layout builder, but it does not as a simple block when I added it here (/admin/structure/block).

mariohernandez’s picture

Currently the focus of our team is to ensure Patternkit works within the Layout Builder UI. We have not dedicated much time to ensure it works in the /admin/structure/block.

jasonawant’s picture

I created #3315480: Unable to create patternkit block without Layout Builder to report other items related to creating patterkit blocks separate from layout builder