Hi Karla,
The non-continuous selection does not support copyPaste yet. This subject can be tracked under this issue https://github.com/handsontable/handsontable/issues/4878
beforePaste
hook returns an array of changes where we set up only values, without coordinates, so
This is the result of pasting horizontal data
Here is vertical data
and an array where we have a range of cells for a couple of rows and columns
We do not, however, have a structure for multiple cells/ranges that are non-contiguous. That would probably cause a breaking change in the way we pass data related to paste.
As a workaround, you can try to block the Handontable paste event and replace it with custom logic (for example with the setDataAtCell
method). But then you would also need to read the data from selected cells with a piece of custom logic.