3

I'm trying to handle PrintScreen paste in a textarea, which is working everywhere except in Safari. Since Safari is a kind of webkit it has event.clipboardData object. But in Chrome it is a DataTransfer and works fine. It does not work in Safari, and I'm failed to find the reason in docs.

$(document).ready(function(){
    $('.test').bind('paste', function(evt){
        console.log(evt.originalEvent.clipboardData.items[0]);
    });
});
Ram
  • 3,092
  • 10
  • 40
  • 56
farghost
  • 231
  • 2
  • 10
  • There is no question here. :) Yes, right, it is not working in Safari. Look here (http://codebits.glennjones.net/copypaste/pasteimagedata.htm) and check browsers compatibility and see live example. – Naeel Maqsudov Aug 23 '15 at 01:07
  • By the way JIRA have fixed this issue: https://jira.atlassian.com/browse/JRA-37805 According to this task JIRA is able to paste images from clipboard in Safari since 6.2.4. I don't know how. – Naeel Maqsudov Aug 23 '15 at 01:11
  • @farghost, do you have new information regarding this issue? thanks – zed Mar 28 '17 at 19:06
  • unfortunately not, I don't have new info. – farghost Nov 16 '17 at 09:26

0 Answers0