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]: linkOnPaste does not work on Linux + Firefox #5883

Closed
1 task done
Leviob opened this issue Nov 28, 2024 · 3 comments
Closed
1 task done

[Bug]: linkOnPaste does not work on Linux + Firefox #5883

Leviob opened this issue Nov 28, 2024 · 3 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

@Leviob
Copy link

Leviob commented Nov 28, 2024

Affected Packages

core

Version(s)

2.10.3

Bug Description

Links pasted into the editor typically automatically have the hyperlink created. If text is highlighted when a link is pasted, the text becomes a hyperlink to the copied link. This works for me on Windows in both Firefox and Chrome, and in Chrome on Linux.

However, in the latest Firefox, on Ubuntu Linux, this does not work. Pasting a link just pastes the text and it does not turn into a hyperlink automatically. Highlighting text and pasting a link just replaces the originally highlighted text.

I have tried launching Firefox in safe mode with all extensions disabled, disabling Firefox's enhanced tracking protection, and it still behaves as described above.

Browser Used

Firefox

Code Example URL

https://templates.tiptap.dev/

Expected Behavior

  • On Linux+Firefox, paste a link, such as https://templates.tiptap.dev/ into this demo block text editor. In other browsers, such as Chrome, this creates a link automatically. In Firefox, it pastes the text, but does not create a link.
  • on Linux+Firefox, highlight some text, and paste a link. In other browsers, this adds a link to the selected text. In Firefox, this replaces the text with the copied link.

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.
@Leviob Leviob 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 Nov 28, 2024
@nperez0111
Copy link
Contributor

Link pasting seemed to work for me on Firefox on macOS. Can you send a screen recording? Could this be due to clipboard handling on linux?

@Leviob
Copy link
Author

Leviob commented Nov 28, 2024

How can I help diagnose this? The browser console shows no warnings or errors.
Here's a video showing pasting not working in Firefox, but working in Brave.

tiptappaste.mp4

Currently using Linux Mint 22 Cinnamon.

@nperez0111
Copy link
Contributor

I don't know what the problem here could be. That feels like a browser bug since I got it to work on macOS firefox 🤷 I'm not sure there is much we can do here

@Leviob Leviob closed this as completed Dec 7, 2024
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
None yet
Development

No branches or pull requests

2 participants