close
Skip to content

Add possibility to reset blocks when they are locked #44227

@kraftner

Description

@kraftner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Block LockingThe API allowing for the ability to lock/unlock blocks[Feature] BlocksOverall functionality of blocks[Type] DiscussionFor issues that are high-level and not yet ready to implement.[Type] EnhancementA suggestion for improvement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions