Closed (fixed)
Project:
Iframe
Version:
3.0.0
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2026 at 11:55 UTC
Updated:
1 Jul 2026 at 14:15 UTC
Jump to comment: Most recent
If you set a value in the Additional CSS Class field in the form display settings, it isn't possible for editors to remove that by overriding it in the node edit form.
1. Create a content type with an iframe field
2. Expose the Additional CSS Class field and set a default value, e.g. iframe-responsive
3. Edit a node and try to remove the iframe-responsive or set a different class
4. Save the node
5. Edit the node again - the default class has come back
The value set on the form display should just be a default value, not enforced on save
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
mukeshaddweb commentedComment #5
malcomio commentedThanks - the change in MR 29 seems to fix the issue for me.
Comment #7
smustgrave commented