Skip to content

Add support for custom onSplit, onSplitMiddle #47806

Open

Description

What problem does this address?

There are occasions when we would like to modify onSplit behaviour.
In the example below, we want the split Heading to be a paragraph.

patch package Feb-04-2023 09-31-57

We had to use patch-package to make the above change:

image

What is your proposed solution?

Currently, onSplit is a prop of the RichText child of BlockEdit and we don't have a way to manipulate it.

Request - allow custom onSplit, onSplitMiddle behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions