Posted 16 October 2022, 2:03 pm EST
Hi teams,
On my application, my customer want to display 2 SpreadJS to show 2 type of data. On SpreadJS1, we have 1 merged cell:
sheet.addSpan(0, 0, 2, 1);
Now, i perform copy/paste actions between 2 SpreadJS:
- On SpreadJS1, select merged cell A1 (text “ABC”) and Ctrl + C.
- On SpreadJS1, select single cell B1 and Ctrl + V => B1 & B2 will be merged with text “ABC”.
- On SpreadJS2, select single cell A1 (text “ABC”) and Ctrl + C.
- On SpreadJS1, select single cell C1 and Ctrl + V => C1 & C2 will be merged with text “ABC”.
- On SpreadJS2, select single cell B1 (text “DEF”) and Ctrl + C.
- On SpreadJS1, select single cell D1 and Ctrl + V => D1 will be pasted with text “DEF”.
On the above steps, i see that step 3-4 and step 5-6 have the same behavior but result is different.
I think result of step 5-6 is correct.
On step 4, i think the right result is: C1 & C2 won’t be merged.
But, windows clipboard seem to have not been changed and data is pasted is data from step 1.
Please check my sample source code and give me an explaintation.
SpreadJS_PasteBetweenTwoSpreadJS.zip
