I am using Html5 and Jquery. I have paste image/text from clipboard into html canvas.
Is it possible to detect whether clipboard has text or image?
$(document).on('paste','[contenteditable]',function(e) {
e.preventDefault();
//Here is it possible to detect whether clipboard has text or image?
var text = (e.originalEvent || e).clipboardData.getData('text/plain');
});
Thanks!