Skip to content

onassar/jQuery-PasteImages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

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

About

jQuery image paste helper class to normalize how to listen for image pasting.

Resources

License

Stars

Watchers

Forks

Packages

No packages published