Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks rearrange hooks #28256

Open
dikium opened this issue Jan 16, 2021 · 0 comments
Open

Blocks rearrange hooks #28256

dikium opened this issue Jan 16, 2021 · 0 comments
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.

Comments

@dikium
Copy link

dikium commented Jan 16, 2021

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 in blocks.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.

@talldan talldan added [Feature] Block API API that allows to express the block paradigm. [Type] Feature New feature to highlight in changelogs. Needs Technical Feedback Needs testing from a developer perspective. labels Jan 20, 2021
@dikium dikium closed this as completed Jan 21, 2021
@dikium dikium reopened this Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants