You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for custom onSplit, onSplitMiddle #47806
Hi,
This issue has gone 180 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.
Thanks for helping out.
Hi @kosiew! I recommend using a ref to override the keydown native event and use event.preventDefault to prevent RichText default behaviour. Note that this won't work with React events atm.
Thanks for the report, @kosiew! The example here is now core behaviour: since #61891, splitting a Heading turns the second half into a paragraph (the default block), so the patch shouldn't be needed anymore. More generally, splitting moved out of RichText into the block editor store in #54543 and is now opted into with the "splitting" support in block.json, which is why the RichText onSplit prop was deprecated rather than extended. Closing thanks.
Activity
github-actions commentedon Aug 7, 2023
Hi,
This issue has gone 180 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.
Thanks for helping out.
ellatrix commentedon Jul 8, 2024
Hi @kosiew! I recommend using a ref to override the keydown native event and use
event.preventDefaultto prevent RichText default behaviour. Note that this won't work with React events atm.youknowriad commentedon Oct 22, 2026
Thanks for the report, @kosiew! The example here is now core behaviour: since #61891, splitting a Heading turns the second half into a paragraph (the default block), so the patch shouldn't be needed anymore. More generally, splitting moved out of RichText into the block editor store in #54543 and is now opted into with the
"splitting"support in block.json, which is why the RichTextonSplitprop was deprecated rather than extended. Closing thanks.