Add ability to mark block as post content #59290
Labels
[Feature] Extensibility
The ability to extend blocks or the editing experience
[Feature] Template Editing Mode
Related to the template editor available in the Block Editor
[Type] Enhancement
A suggestion for improvement.
When the block editing mode is set to
template-lock
the template is rendered but all the blocks that are within the template have their block editing mode set todisabled
.All except for the post title, post featured image, and post content blocks.
These are hardcoded into a constant here:
gutenberg/packages/editor/src/components/provider/disable-non-page-content-blocks.js
Lines 8 to 12 in d969294
There are many ciscumstances where a 3rd party block also reads / writes data to the post object. Whether that is a meta field, a taxonomy or any other custom element.
It would be great it there was a way to identify those blocks to get the same treatment as these three blocks.
Proposed solutions
Maybe a block support would make sense here 🤔
The idea would be that a block can flag that it saves something to the post instead of only saving to local attributes.
The text was updated successfully, but these errors were encountered: