[Bug]: YouTube video pasting broken with Link extension since 2.1.0-rc.2 #4347
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?
extension-link, extension-youtube
What Tiptap version are you using?
2.1.X
What’s the bug you are facing?
The paste handler configured for the YouTube extension does not work when Link extension is used as well. The paste rule is defined here:
tiptap/packages/extension-youtube/src/youtube.ts
Lines 127 to 133 in af017d1
Instead of the YouTube video being embedded automatically on paste, a link appears pointing to the YouTube URL.
This works fine with 2.0.4 but in any version 2.1.X it is broken (broken since stable release 2.1.0 and from RC release 2.1.0-rc.2).
What browser are you using?
Chrome
Code example
https://codesandbox.io/s/objective-edison-zxxc94
What did you expect to happen?
I would expect the YouTube extension's paste rule to work alongside the Link extension.
Anything to add? (optional)
Here is a working example using version 2.0.4 (the same example using 2.0.4):
https://codesandbox.io/s/reverent-dust-j9cmm5
To drill down even deeper, it seems to also work with
2.1.0-rc.1
but it is broken in2.1.0-rc.2
.Potentially breaking change between these releases #3975 based on the
autolink.js
change history within theextension-link
package.Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: