emojionearea icon indicating copy to clipboard operation
emojionearea copied to clipboard

Not able to get clip board data from paste event

Open ShruthiJaiprakash opened this issue 5 years ago • 1 comments

Hello, I am trying to retrieve the clipboard data ( i have a requirement to paste an image into the text area), I dont seem to find the event e for me to search for var items = e.clipboardData.items; Can you please help me!

Thanks

ShruthiJaiprakash avatar Oct 01 '19 01:10 ShruthiJaiprakash

Is there a way I can access original event object and read clipboardData from there?

Quick solution If you need to get the paste event with the original event you can also do it like this:

window.$('.emojionearea-editor').get(0).addEventListener('paste', this.pasteHandler);

vmurgic avatar May 15 '20 10:05 vmurgic