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

Fix nodeInputRule #6385

Merged
merged 1 commit into from
Apr 23, 2024
Merged

Fix nodeInputRule #6385

merged 1 commit into from
Apr 23, 2024

Conversation

distantnative
Copy link
Member

@distantnative distantnative commented Apr 6, 2024

This PR …

For the purpose of the hr node, nodeInputRule also deleted the previous character before the match (to remove the extra leftover empty line). This behavior doesn't make sense for other nodes, in particular inline nodes. This PR fixes the behavior of nodeInputRule and adds the custom behavior directly to the hr node.

Fixes

  • Editor: nodeInputRule only overwrites matched selection

For review team

  • Add changes & docs to release notes draft in Notion

@distantnative distantnative added the type: bug 🐛 Is a bug; fixes a bug label Apr 6, 2024
@distantnative distantnative added this to the 4.3.0 milestone Apr 6, 2024
@distantnative distantnative self-assigned this Apr 6, 2024
@bastianallgeier
Copy link
Member

I've added a hr example to the writer field page blueprint.

@bastianallgeier bastianallgeier merged commit d6fef22 into develop-minor Apr 23, 2024
13 checks passed
@bastianallgeier bastianallgeier deleted the fix/editor-hr-input-rule branch April 23, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Is a bug; fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants