-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Better handling for plugin modification of core blocks #10204
Copy link
Copy link
Open
Labels
Backwards CompatibilityIssues or PRs that impact backwards compatabilityIssues or PRs that impact backwards compatability[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Feature] Block TransformsBlock transforms from one block to anotherBlock transforms from one block to another[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Feature] ExtensibilityThe ability to extend blocks or the editing experienceThe ability to extend blocks or the editing experience[Feature] MediaAnything that impacts the experience of managing mediaAnything that impacts the experience of managing media[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Milestone
Metadata
Metadata
Assignees
Labels
Backwards CompatibilityIssues or PRs that impact backwards compatabilityIssues or PRs that impact backwards compatability[Feature] Block APIAPI that allows to express the block paradigm.API that allows to express the block paradigm.[Feature] Block TransformsBlock transforms from one block to anotherBlock transforms from one block to another[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Feature] ExtensibilityThe ability to extend blocks or the editing experienceThe ability to extend blocks or the editing experience[Feature] MediaAnything that impacts the experience of managing mediaAnything that impacts the experience of managing media[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.
A plugin can use the
blocks.getSaveElementto modify the saved output of a Gutenberg core block. I started documenting this here: #8470 (review)For instance, I may want to write a plugin which adds a
data-pin-descriptionattribute to an Image Block:However, if the plugin is deactivated after the user adds a Pinterest Description to their Image Block, the Image Block, the block will enter into an invalid, crashed state.
The Classic Editor permits manipulation of any HTML5 element, in accordance to the entire spec. It would be ideal of Gutenberg permitted the same: #6878 (comment)
Related #7811
Related #8472