Is it possible to support svg <img> tags.

Created on 13 September 2024, 8 months ago

Problem/Motivation

Normal image fields as well as images uploaded with CK and either media library or inline image plugins insert svg as an img tag with src as the svg file. Since this seems likely to be the number 1 use case, is it safe to assume this module can't handle this the way it works?

 <img loading="lazy" src="/sites/default/files/2024-09/android_0.svg" class="img-responsive" alt="">

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Closed: works as designed

Version

2.1

Component

Code

Created by

🇨🇦Canada liquidcms

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

Comments & Activities

  • Issue created by @liquidcms
  • Status changed to Closed: works as designed 8 months ago
  • 🇨🇦Canada liquidcms

    Marking as closed as i realized the Embed media (or other) filter converts the <drupal-media data-entity-type="media" data-entity-uuid="e35b7fd8-4e8b-4b50-987e-327e376b31a6">&nbsp;</drupal-media> tag to an img tag before this gets a chance to act. Re-ordering the filter higher up fixes the issue.

Production build 0.71.5 2024