scratchfoundation / scratch-paint

Paint editor for Scratch 3.0
https://llk.github.io/scratch-paint/
BSD 3-Clause "New" or "Revised" License
175 stars 231 forks source link

Be able to paste from copy buffer into paint #1025

Open fsih opened 4 years ago

fsih commented 4 years ago

Something that would make the paint editor a lot more seamless to use is if you could paste images straight from the copy buffer.

Currently, you have to open a 3rd party app like MS Paint, paste the copied image into it, save it as a file, and upload the file to the Scratch paint editor before you can edit it in Scratch.

apple502j commented 4 years ago

Well, sad news, Firefox does not support reading the clipboard as DataTransfer... https://caniuse.com/#feat=mdn-api_clipboard_read

Also, since it's not text, execCommand won't do the thing.

Jacco commented 4 years ago

I think this can still be implemented. You can gracefully degrade when the browser (IE/firefox) does not support it.