All Projects → redgeoff → paste-image

redgeoff / paste-image

Licence: MIT license
Cross-browser pasting of images

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
shell
77523 projects

paste-image Build Status Coverage Status Dependency Status

Selenium Test Status

Cross-browser pasting of images

Live Demo

A simple example that works in all major browsers.

Example

// Listen for all image paste events on a page
pasteImage.on('paste-image', function (image) {

  // Display the image by appending it to the end of the body
  document.body.appendChild(image);

});

Install via NPM

npm install paste-image

Why?

It's 2016 and Chrome is the only browser to properly implement the Clipboard API. Let's wrap up some workarounds and provide an easy way to provide cross-browser image pasting.

Contributing

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].