-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add possibility to reset blocks when they are locked #44227
Copy link
Copy link
Open
Labels
[Feature] Block LockingThe API allowing for the ability to lock/unlock blocksThe API allowing for the ability to lock/unlock blocks[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Type] DiscussionFor issues that are high-level and not yet ready to implement.For issues that are high-level and not yet ready to implement.[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Metadata
Metadata
Assignees
Labels
[Feature] Block LockingThe API allowing for the ability to lock/unlock blocksThe API allowing for the ability to lock/unlock blocks[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Type] DiscussionFor issues that are high-level and not yet ready to implement.For issues that are high-level and not yet ready to implement.[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.
What problem does this address?
When a block is locked (either as part of a template or just the single block) for some (e.g. image, video) there is no way to reset them to the initial empty state.
For fully editable block content this is no problem - just delete the block.
But if you e.g. have a custom post type with a fixed template like this:
you can "reset"
core/headingandcore/paragraphby just deleting the text.But for
core/imageandcore/videoyou can only change them to another image/video but never go back to empty.What is your proposed solution?
Add a button to reset the block to the initial/default state.
This could be a top level block next to "Replace":


Or inside the replace flow:
Worth considering is also if that option should always exist, or just in the case of a locked block.