Blocks rearrange hooks #28256
Labels
[Feature] Block API
API that allows to express the block paradigm.
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Feature
New feature to highlight in changelogs.
What problem does this address?
Hi, i'm extending gutenberg blocks with comments for each block. I'm figured out how to add
blockId
attribute to every block. Now i'm getting trouble with article editing. I need to ask user what he wants to do with block comments when block merges/splits/transforms. And, maybe show confirmation when block removes. Now i'm has ability to do something with merge/transform methods inblocks.registerBlockType
filter. But i suppose i have no official and stable way to add handlers on split/remove editor events.What is your proposed solution?
Maybe i can ask you to add some hooks for merging/splitting/removing/transforming blocks? (and maybe for adding block, for a universality)? That actions hooks needs a involved blocks information as a params.
The text was updated successfully, but these errors were encountered: