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
Post a Comment