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
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
Comment #4
mukeshaddweb commentedComment #5
malcomio commentedThanks - the change in MR 29 seems to fix the issue for me.
Comment #7
smustgrave commented