-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Can't paste a snipped image #1276
Comments
Hi! Paste support is a little flaky at times. If you enable debugging, does the console say anything about the image? |
Hello, |
I found that you have to click the drop zone to give it focus and then pasting works for me (in latest Chrome). Not sure if that helps with your IE situation. Ideally, the drop zone doesn't require clicking to give focus first - ought to capture "paste" at the window level? |
That’s right, the Dashboard is the paste target, so it has to be in focus. I’m hesitant to capture all window paste events, since there might be other things happening in the bigger site/app, which Uppy is just a part of. And by capturing everything we might unintentionally paste all sorts of stuff. |
One of the options I was considering for the Dashboard is capturing all file drops on the |
@arturi good point - an option so it’s not default makes sense to me. A use case I’m currently solving for that brought me here yesterday is pasting into a normal textarea with markdown capability. Since we use Uppy, ideally we trigger Uppys paste upload capability, but I haven’t gotten far yet on how to trigger that without the drop zone visible. Any thoughts whether this is remotely possible? (Think GitHub issues and how you can paste screenshots right here.) Thanks! |
Not unless you trigger the paste event on the Dashboard element — there’s no public API for it. But it’s under consideration. |
Ok thanks! |
Looks like there are two issues discussed here:
|
Thanks for weighing in here Evgenia! The solution you propose seems like a sane one. A new plugin for dragndrop seems like it could cause some BC headaches as we’d still also support the old way until 2.0. Perhaps if by 2.0 we feel strongly it should be its own plugin, that’s the time to pull that trigger, and until then, we can get away with these two properties? |
I think a future separate I considered an option to the Dashboard, but this plugin would supersede that option, we probably shouldn’t duplicate functionality like that. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi,
We are currently implementing your library in our application and we noticed that it was possible to copy/paste an image from Windows snipping tool to the browser, except IE 11.
Is it a bug or is something not supported by uppy/ie and is there a fix, a workaround or a plan to support it?
How to reproduce
Expected behaviour
The snipped image is accepted by the component.
Additional information
It was tested based the examples provided on your website and in a
create-react-app
example.The text was updated successfully, but these errors were encountered: