javascript - Find Whether the clipboard has text or image? -


i using html5 , jquery. have paste image/text clipboard html canvas.

is possible detect whether clipboard has text or image?

$(document).on('paste','[contenteditable]',function(e) {     e.preventdefault();      //here possible detect whether clipboard has text or image?      var text = (e.originalevent || e).clipboarddata.getdata('text/plain'); }); 

thanks!


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -