Delete images uploaded/selected by the editor image block?

Hi,

I set a blueprint with the Editor field and a files section.

title: Section

columns:

  - width: 2/3
    fields:

      editor:
        type: editor
        label: Content


  - width: 1/3

    sections:

      gallery:
        headline: Downloaded files
        type: files
        help: Images, PDF, audios, vidéos ...
        template: image

When I use the image block in the editor to download an image and select it, I see it in the block’s selected list but not in my files section “gallery” as I expected.

I set this files section to be able to delete an image from the image block’s selected list. Maybe it is not the right way to do.

What is the right solution to delete an image selected via the editor image block?

Since you are limiting your gallery section to files with template image, but don’t assign a template to images you upload via the editor, they won’t show up. You would have to assign a template using the upload property (just like for normal textarea fields).

Ok I get it, thank you Sonja :slight_smile:

title: Section

columns:

  - width: 2/3
    fields:

      editor:
        type: editor
        label: Content
        uploads:
          template: image


  - width: 1/3

    sections:

      gallery:
        headline: Downloaded files
        type: files
        help: Images, PDF, audios, vidéos ...
        template: image