emojionearea icon indicating copy to clipboard operation
emojionearea copied to clipboard

paste image from clipboard

Open quotesdiary opened this issue 2 years ago • 0 comments

Hi! I want change file input of my form when someone paste image from clipboard in emojioneArea. I have tried paste event and its detecting paste but I am not able to access file from it. My code is like below

events: {
         paste: function (editor, event) { 
            files = event.clipboardData.files;
            console.log(files);
                
            }
}

I am trying to do same from last two hours but not able to make it working. Let me know if anyone here can help me for solve my issue. Thanks!

quotesdiary avatar Aug 25 '22 22:08 quotesdiary