data-view-mode attribute is missing from the MediaEmbed plugin

Created on 31 January 2024, 5 months ago

Problem/Motivation

I write markdown articles, and I choose my view mode depending upon the image, hence I need to specify the data-view-mode attribute on the <drupal-media/> tag.

Steps to reproduce

Add a <drupal-media data-view-mode="my-media-view-mode"/> tag in markdown content. View mode is discarded and some default applies instead.

Proposed resolution

Simply add 'data-entity-uuid' => TRUE, in the src/Plugin/Markdown/AllowedHtml/MediaEmbed.php file.

Remaining tasks

Add 'data-entity-uuid' => TRUE, in the src/Plugin/Markdown/AllowedHtml/MediaEmbed.php file.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡«πŸ‡·France pounard

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

Comments & Activities

Production build 0.69.0 2024