Posted 21 March 2023, 3:47 am EST - Updated 21 March 2023, 11:52 pm EST
Hi,
Currently, we are using fromRanges on GC.Spread.Sheets.Commands.clipboardPaste.execute like this:
let clipboardPaste = GC.Spread.Sheets.Commands.clipboardPaste.execute
GC.Spread.Sheets.Commands.clipboardPaste.execute = function (
context,
options,
isUndo
) {
let { fromRanges } = options
....
clipboardPaste.apply(this, arguments)
}
-First use ctrl + c and right-click select ‘Paste’ it works fine.
-Then right-click select ‘Copy’ then paste using right-click menu.
-Do copy again with ctrl + c and right-click select ‘Paste’. This time ‘fromRanges’ is null.
FYI: We are using SpreadJS v14
So Is there any way to fix it?
Regards,
Thanh
