Yoopta-Editor icon indicating copy to clipboard operation
Yoopta-Editor copied to clipboard

Allow pasting image from clipboard

Open mdsaban opened this issue 1 year ago • 2 comments

Description

The editor currently only supports copying and pasting images from the internet. It cannot paste images from the local clipboard, like screenshots. This PR adds support for pasting images directly from the clipboard.

https://github.com/user-attachments/assets/c18f1470-44a4-4125-82ee-3c043d531d09

Related issue #320

Type of change

Please tick the relevant option.

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update

mdsaban avatar Oct 02 '24 14:10 mdsaban

@mdsaban is attempting to deploy a commit to the dargo's projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 02 '24 14:10 vercel[bot]

@Darginec05 I've created this PR as a draft. I have a few questions I need your help with:

  1. What's the best way to create a block for the pasted image? Currently, I’ve implemented it in a basic manner for the POC.
  2. How can we extend this to allow users to upload the pasted image to their servers if needed?
    • Should we handle the uploading functionality in a separate PR to keep this one focused, or include it here?

mdsaban avatar Oct 02 '24 14:10 mdsaban