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

Allows for pasting image links #35

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

SuppliedOrange
Copy link
Contributor

  • The website can now take in links from document.onpaste and attempt to fetch an image from it.
  • If there is an image, it loads it as a file.
  • Pasting links to non-images does not invoke any error in the same fashion that drag-drop does not invoke any error. It only silently returns. I hope you guys will have an alert dialog in the future that you can incorporate in these places.

Like DragDrop but allows you to paste an image
Allow an image to be pasted with the ImagePasted class
Renamed the file for better consistency, also fixed a small mistake
Added a condition that gets text from a clipboard and tries to fetch that text if it's a link to an image
Adds the ability to paste images into the website (sapic#27)
 - Matches any URL not just file paths because that was not a good move to begin with.
- Fixed a tiny bug
its no longer a link to a file regex. it scans for all links.
Informs the user that the fetch failed. The reason for the fetch failure should have errored in the console before this line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant