Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to reset blocks when they are locked #44227

Open
kraftner opened this issue Sep 16, 2022 · 0 comments
Open

Add possibility to reset blocks when they are locked #44227

kraftner opened this issue Sep 16, 2022 · 0 comments
Labels
[Feature] Block Locking The API allowing for the ability to lock/unlock blocks [Feature] Blocks Overall functionality of blocks [Type] Discussion For issues that are high-level and not yet ready to implement. [Type] Enhancement A suggestion for improvement.

Comments

@kraftner
Copy link

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:

grafik

you can "reset" core/heading and core/paragraph by just deleting the text.
But for core/image and core/video you 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":
grafik
Or inside the replace flow:
grafik

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

@artemiomorales artemiomorales added [Type] Enhancement A suggestion for improvement. [Feature] Blocks Overall functionality of blocks [Type] Discussion For issues that are high-level and not yet ready to implement. [Feature] Block Locking The API allowing for the ability to lock/unlock blocks labels Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block Locking The API allowing for the ability to lock/unlock blocks [Feature] Blocks Overall functionality of blocks [Type] Discussion For issues that are high-level and not yet ready to implement. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants