Support additional attributes in <iframe> tag

Created on 15 December 2022, almost 2 years ago
Updated 24 August 2024, 3 months ago

Problem/Motivation

Based on the documentation here https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe, iframe tag can take many other values.

There are a few experimental as well as few stable ones.
I needed to add sandbox and referrerpolicy attributes to be added along with iframe tag.

I think we should add a support for additional fields.

Steps to reproduce

Proposed resolution

- Add additional fields
- Add sample field widget and field formatter (if required).

Remaining tasks

I have added new fields in the Field type and performed the necessary changes in the plugins.
I will create an MR for this issue.

For the sake of reference, I've created two new plugins, FieldWidget and FieldFormatter
That can be found in Gist: https://gist.github.com/mohit-rocks/2fa23ec3a79ee13ac7c66fc5fcca2317
I haven't added those plugin in the PR because this isn't required. Usually, developers can create those themselves.

User interface changes

N/A

API changes

Data model changes

Yes, new column and properties added to the FieldType

📌 Task
Status

Needs work

Version

3.0

Component

Miscellaneous

Created by

🇮🇳India mohit_aghera Rajkot

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.71.5 2024