paste currently not working
parent
03ded83af1
commit
e45a730db2
|
@ -1,4 +1,4 @@
|
|||
// window.addEventListener('paste', ... or
|
||||
// TODO as is paste is currently not working
|
||||
document.onpaste = function(event){
|
||||
var items = (event.clipboardData || event.originalEvent.clipboardData).items;
|
||||
for (index in items) {
|
||||
|
@ -6,7 +6,7 @@ document.onpaste = function(event){
|
|||
if (item.kind === 'file') {
|
||||
var blob = item.getAsFile();
|
||||
var reader = new FileReader();
|
||||
reader.onload = function(event){
|
||||
reader.onload = function(event){}; // remove?
|
||||
reader.readAsDataURL(blob);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue