🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

The jQuery Image Paste that provides a helper class for listening for the image paste event on the document, extracting out any possible blobs that were pasted in, and then triggering a custom event handler with those blobs.

Event Paste

Documentation

jQuery Image Paste Event

jQuery image paste helper class to normalize how to listen for image pasting.
Pretty straightforward: just include the JS file, and then listen for the custom/paste/images event.

Example

$(document).on({     'custom/paste/images': function(event, blobs) {         console.log(blobs);     } });

Notes

  • Currently will only fire the custom/paste/images if there is at least one image detected as available
  • Does not currently work in Safari; will update it when I figure it out, or else when Safari updates to make it possible

You May Also Like