Description of the need In rich text editor in image details, users are allowed to click the insert or update button even if they do not have a file chosen.
Proposed solution You could block the "Update" button until an image is added or have a popup to notify the user that they do not have an image selected when clicking insert/update.
Additional information
Inserting an non-existent file:
Updating after a file is removed:
Recent comments
I don't think this answers your question, but it might help someone with a related question. The layout template for any given layout is stored in config and you can programmatically...
How to programmatically change layout?
perfect, thank you
Edit Node fields
Component ID can be found here:
Edit Node fields