javascript - Reading Clipboard Images in IE -
i can read clipboard images in chrome using following code:
data = event.originalevent.clipboarddata; (var = 0; i<data.items.length; i++){ var item = data.items[i]; if (item.type === 'image/png'){ itemfound = true; break; } }
this approach not work in ie however. microsoft posted blog pasting in ie (http://blogs.msdn.com/b/ie/archive/2013/10/24/enhanced-rich-editing-experiences-in-ie11.aspx). blog states should able use following line of code
var filelist = clipboarddata.files;
filelist comes empty however.
does know way of accessing clipboard images in ie? able read text fine, not images.
Comments
Post a Comment