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

hotfix(core): Fix input rules not working if at last position of a block #4337

Merged
merged 6 commits into from Aug 16, 2023

Conversation

bdbch
Copy link
Contributor

@bdbch bdbch commented Aug 16, 2023

Please describe your changes

This PR fixes an issue introduced in 2.1.0 that caused inputRules to not work correctly if the position was the last position of an isolating block range.

How did you accomplish your changes

I added better position handling for the inputRule class.

How have you tested your changes

I tested the following extensions locally:

  • HorizontalRule
  • Image
  • Figure

How can we verify your changes

Test the nodeInput behavior on the following demos:

  • HorizontalRule
  • Image
  • Figure

Checklist

  • The changes are not breaking the editor
  • Added tests where possible
  • Followed the guidelines
  • Fixed linting issues

@bdbch bdbch added the Type: Bug The issue or pullrequest is related to a bug label Aug 16, 2023
@bdbch bdbch self-assigned this Aug 16, 2023
@bdbch bdbch requested a review from svenadlung as a code owner August 16, 2023 17:25
@netlify
Copy link

netlify bot commented Aug 16, 2023

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit efb2795
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/64dd0c6f23a5db0008cfee7d
😎 Deploy Preview https://deploy-preview-4337--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@bdbch bdbch changed the base branch from develop to main August 16, 2023 17:37
@bdbch bdbch changed the title fix(core): Fix input rules not working if at last position of a block hotfix(core): Fix input rules not working if at last position of a block Aug 16, 2023
@bdbch bdbch merged commit 0d7daed into main Aug 16, 2023
15 checks passed
@bdbch bdbch deleted the bdbch/fix-node-input-rules branch August 16, 2023 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug The issue or pullrequest is related to a bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants