Skip to content

feat: show toast notification on copy in editor#43

Merged
j4rviscmd merged 1 commit intomainfrom
feat/copy-toast
Mar 25, 2026
Merged

feat: show toast notification on copy in editor#43
j4rviscmd merged 1 commit intomainfrom
feat/copy-toast

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

  • Display a success toast ("Copied to clipboard") when the user copies content via Cmd/Ctrl+C in the BlockNote editor
  • Cut operations (Cmd/Ctrl+X) and empty selections are intentionally ignored
  • Uses a new useCopyToast hook that listens for DOM copy events on the editor element

Test plan

  • Select text and press Cmd/Ctrl+C → toast.success appears
  • Press Cmd/Ctrl+C with no selection → no toast
  • Select text and press Cmd/Ctrl+X → no toast
  • Select an image block and copy → toast appears
  • Select table cells and copy → toast appears
  • Verify on Windows with Ctrl+C/Ctrl+X

🤖 Generated with Claude Code

Display a success toast ("Copied to clipboard") when the user copies
content via Cmd/Ctrl+C in the BlockNote editor. Cut operations and
empty selections are intentionally ignored.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@j4rviscmd j4rviscmd added the enhancement New feature or request label Mar 25, 2026
@j4rviscmd j4rviscmd merged commit d4efa05 into main Mar 25, 2026
@j4rviscmd j4rviscmd deleted the feat/copy-toast branch March 25, 2026 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant