Configured form not working via CKeditor Drupal Media widget

Created on 27 January 2025, about 1 month ago

Problem/Motivation

I have three media types (image, document, remote video) and one form configured for each type. The forms have type specific fields as well as common fields (like copyright information) which are required on the media types. When using the bulk upload feature via the admin menu or available action links the configured form is displayed and working as expected.

But when uploading (bulk) media from editing some content (via the CKeditor5 Drupal Media widget) bulk media can be uploaded using Dropzone.js but the configured form is not displayed. As this will be the main way of uploading media (especially images) for the customer's editors the customer sees this as blocker as he is not able to force his editors to provide legally required information such as copyright.

Steps to reproduce

  • Enable CKeditor5 and the Drupal Media widget for the Basic HTML text format.
  • Configure the article content type to use the Basic HTML text format for the body field.
  • Add a custom field to the image media type.
  • Create a image_bulk_upload configuration for the image media type and verify via /media/bulk-upload/image_bulk_upload that it shows the custom field of the image media type.
  • Create a new article and click on the Drupal Media icon in the CKeditor toolbar. The media upload is possible but the configured form is not showing,

Proposed resolution

Add the configured form to the media (bulk) upload no matter how or from where it is called.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇦🇹Austria mvonfrie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024