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

Extend nodePasteRule find type to most generic PasteRuleFinder #3759

Merged
merged 1 commit into from
Feb 18, 2023

Conversation

jiegillet
Copy link
Contributor

Hello team!
First off, thank you for building and maintaining tiptap, it is truly a pleasure to work with.

While working on our editor, we ran across nodePasteRule which we wanted to use with a non-regexp pattern.
The specs in PasteRule.ts doe also allow functions as argument for find, and functions actually work perfectly with nodePasteRule as well, but there will be a type error.

This PR changes the type of nodePasteRule's find to the most general type it can accept.
I hope it's OK to open a PR directly for this two-line change.

@netlify
Copy link

netlify bot commented Feb 17, 2023

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit 82d72f8
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/63eedf086ebcdb000832a0c1
😎 Deploy Preview https://deploy-preview-3759--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 settings.

Copy link
Contributor

@bdbch bdbch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR @jiegillet.
Looks good to me!

@bdbch bdbch merged commit a81019a into ueberdosis:main Feb 18, 2023
aliasliao pushed a commit to aliasliao/tiptap that referenced this pull request May 24, 2023
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.

2 participants