Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Paste image #64

Closed
johnhadrill opened this issue Apr 17, 2015 · 1 comment
Closed

Paste image #64

johnhadrill opened this issue Apr 17, 2015 · 1 comment

Comments

@johnhadrill
Copy link

Would be useful to be able to paste image by using cmd+V. This can be achieved in webkit relatively easily, and would be great for sharing screenshots!

http://jsfiddle.net/KJW4E/519/

@peterjosling
Copy link
Contributor

This has already been implemented in #55, just waiting for the code to be cleaned up and merged in.

Safari doesn't actually support e.clipboardData.items (ugh), so the code you posted isn't enough. The implementation I came up with catches the paste event in Swift and sends the image data directly to a Javascript function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants