Skip to content

Content Only mode should allow controls in the Inspector to still be reachable if they are content related #57911

Open

Description

We have more and more controls that I would consider content rather than design tools that are only visible in the Inspector controls of a block. Currently however the content only mode hides the blocks inspector controls entirely.

This is a major issue for things like the Alt text of the image block which cannot be changed in the context of a content only mode.

CleanShot 2024-01-17 at 09 58 18@2x

But also new other tools such as the background image option on the group block, or the rel attribute for buttons, anchor tags for elements etc are common pieces of content that should be editable in the content only mode.

I think with the introduction of the useBlockEditingMode we have a robust API to make granular choices about which settings should display in the content only mode and we should therefore rethink the limitation of disabling the inspector all together for content only locking.

if ( topLevelLockedBlock ) {
return (
<BlockInspectorLockedBlocks
topLevelLockedBlock={ topLevelLockedBlock }
/>
);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions