Class attribute no longer works

Created on 27 September 2023, about 1 year ago
Updated 12 November 2023, about 1 year ago

Problem/Motivation

Using the 'class' option in iframe field options no longer shows up when using default formatter since a attribute whitelist was introduced in #3253300: Allow full screen not working .

Steps to reproduce

  1. Create a entity with iframe field, configured with default formatter (\Drupal\iframe\Plugin\Field\FieldFormatter\IframeDefaultFormatter) for render.
  2. Populate new entity, fill in required values and 'class' textfield.
  3. Save, and view entity.
  4. Notice the class does not render.

Proposed resolution

Add class to allowlist.

Remaining tasks

Implement

User interface changes

Nil

API changes

Nil

Data model changes

Nil

🐛 Bug report
Status

Fixed

Version

2.0

Component

Miscellaneous

Created by

🇦🇺Australia dpi Perth, Australia

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

Comments & Activities

Production build 0.71.5 2024