[Bug]: node / mark paste rules ordering is not respected #4336
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
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 aNode
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?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: