You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allow hiding the blockName field visible in blocks' headers via admin.disableBlockName (#11301)
Adds a new `admin.disableBlockName` property that allows you to disable
the blockName field entirely in the admin view. It defaults to false for
backwards compatibility.
Copy file name to clipboardExpand all lines: docs/fields/blocks.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,7 @@ The Blocks Field inherits all of the default options from the base [Field Admin
84
84
|**`group`**| Text or localization object used to group this Block in the Blocks Drawer. |
85
85
|**`initCollapsed`**| Set the initial collapsed state |
86
86
|**`isSortable`**| Disable order sorting by setting this value to `false`|
87
+
|**`disableBlockName`**| Hide the blockName field by setting this value to `true`|
87
88
88
89
#### Customizing the way your block is rendered in Lexical
89
90
@@ -165,7 +166,7 @@ The `blockType` is saved as the slug of the block that has been selected.
165
166
166
167
**`blockName`**
167
168
168
-
The Admin Panel provides each block with a `blockName` field which optionally allows editors to label their blocks for better editability and readability.
169
+
The Admin Panel provides each block with a `blockName` field which optionally allows editors to label their blocks for better editability and readability. This can be visually hidden via `admin.disableBlockName`.
0 commit comments