Only add the fields on Image media embeds, not all

Created on 13 April 2022, about 2 years ago
Updated 19 April 2023, about 1 year ago

If your site is allowing more media types to be embedded in the ckeditor (file, video, etc), the width and height fields are always being added to the embed edit media form. Based on the corresponding `applyPerEmbedMediaOverrides` method in the `MediaEmbed` class, the width and height settings will only apply to image media entities, so we should only show them on the form when it's an image media entity.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada porchlight

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024