Expose the raw "paste" event on before/afterPaste

Tags: #<Tag:0x00007f4527ec8b50>

Hello - new handsontable user here, looking to integrate it into my company.

However, we’re using a lot of context from the copy when users copy from outside the spreadsheet such as the path, src element, target element etc. All this information is lost in the beforePaste and afterPaste. I’ve tried to attach a global event listener for the paste event but it seems that you’re hijacking it. Based on the source code, the event is;
a) not passed on to any handlers (see https://github.com/handsontable/handsontable/issues/8700 )
b) It’s not getting propagated so I can’t catch it after you’re done with it (as far as i know).

Appreciate any help on how I can get this context!
Cheers!

Hi @msroed

That is true. The global event is replaced by our logic when you do the operations on Handsontable.
At the moment, we do not have any API for extending the scope of meta-information of the clipboard or passing that information to any other part of the code.
I will ask my colleague to check if there are some options to work around this behavior and to update your Github issue.