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

Tiptap: allow images to be uploaded from the clipboard #2465

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

iOvergaard
Copy link
Collaborator

@iOvergaard iOvergaard commented Oct 16, 2024

Description

Add a listener for "paste" events and upload any files that might be included in the clipboard.

Fixes umbraco/Umbraco-CMS#17258

How to test

Take a screenshot or copy an image into the clipboard, then paste it (CTRL+V) into a Tiptap instance with the media upload extension enabled.

@iOvergaard iOvergaard added type/bug release/15.0.0-rc2 Pull requests added after rc1 labels Oct 16, 2024
Copy link
Member

@leekelleher leekelleher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested out, works great. 🚀

The code fix was much more simpler than I'd expected, kudos! 🙌

@iOvergaard iOvergaard merged commit 9d818b2 into release/15.0 Oct 16, 2024
8 checks passed
@iOvergaard iOvergaard deleted the v15/feature/tiptap-paste-files branch October 16, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release/15.0.0-rc2 Pull requests added after rc1 type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants