You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
This PR fixes the clipboard copy feature by replacing deprecated browser clipboard access with Joplin’s official API.
Details
• Replaces navigator.clipboard.writeText() with await joplin.clipboard.writeText()
• Removes all joplin.views.dialogs.showMessageBox() calls that caused blocking issues (notably on Linux GTK)
• Keeps user feedback handled directly by the Outline panel, avoiding redundant popups
• Improves UX consistency and reliability across platforms
Tested on
• ✅ macOS 15.0 “Tahoe” (Apple Silicon)
• ✅ Linux Mint Cinnamon (T2 hardware)
• No regressions, no crashes, clipboard works instantly
Why it matters
The previous implementation triggered modal dialogs that could freeze the UI on Linux and interrupt workflow.
This patch ensures seamless copy operations using Joplin’s own clipboard API, aligning with plugin API best practices.
Hi, thank you for your contribution. I've just released version 1.5.15, and this PR #108 should have fixed your issue.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR replaces the deprecated navigator.clipboard call
with Joplin's native joplin.clipboard API.
✅ Works on macOS (Sequoia/Tahoe) and Linux (Mint Cinnamon)