Problem/Motivation

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.

Steps to reproduce

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

Proposed resolution

The value set on the form display should just be a default value, not enforced on save

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork iframe-3601282

Command icon Show commands

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

malcomio created an issue. See original summary.

mukeshaddweb made their first commit to this issue’s fork.

mukeshaddweb’s picture

Status: Active » Needs review
malcomio’s picture

Status: Needs review » Reviewed & tested by the community

Thanks - the change in MR 29 seems to fix the issue for me.

smustgrave’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.