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

feat(richtext-lexical): adds createdBlock in EditorConfigContext to allow custom admin Block components to open drawer on block create #11299

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sebastianmulders
Copy link

It's currently not possible to have a custom admin Block component open the field drawer when the Block component gets inserted in the editor. The reason for this is that there's no easy way to know what Block component was inserted.

The good news is, is that InlineBlock component does in fact support this already. To allow the same behaviour for Block components, it's necessary to know what BlockNode was inserted. This PR allows for that. When this gets merged, it opens up the ability to write logic in a custom Block component to open the drawer when the block component gets inserted.

…llow custom admin Block components to open drawer on block create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant