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

[Bug]: node / mark paste rules ordering is not respected #4336

Open
1 of 2 tasks
daibhin opened this issue Aug 16, 2023 · 0 comments
Open
1 of 2 tasks

[Bug]: node / mark paste rules ordering is not respected #4336

daibhin opened this issue Aug 16, 2023 · 0 comments
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug

Comments

@daibhin
Copy link

daibhin commented Aug 16, 2023

Which packages did you experience the bug in?

react

What Tiptap version are you using?

2.0.4

What’s the bug you are facing?

No matter what order multiple extensions with paste rules are listed in, if one of the extensions is a Mark it will never call the paste handler for a Node extension.

What browser are you using?

Chrome

Code example

https://codesandbox.io/s/distracted-cloud-jl9jtc

What did you expect to happen?

I want all handlers to be called for overlapping extension paste rule regex expressions. The handlers should be called in the order the extensions are listed on in the extensions array and should continue execution unless specified by a particular handler in the chain to stop (by returning true / false)

Anything to add? (optional)

No response

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@daibhin daibhin added Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug labels Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug
Projects
Status: Triage open
Development

No branches or pull requests

3 participants