Posted 4 October 2019, 4:54 am ESTWe need to allow our users to copy and paste formatted cells between two instances of SpreadJS.
If we use the default keyboard handlers for ctrl-c, ctrl-x, and ctrl-v this works just fine.
However, we have clipboard use polices that have to be enforced to limit when the clipboard can be used, so we are overriding the default keyboard handlers for those keys.
We have handlers that copies the values from the sheet to the clipboard and then pastes them in the sheet, but it does not support any of the formatting.
We know, buy looking on the clipboard, when the allowCopyPasteExcelStyle is used and using the default keyboard handlers, you put on the clipboard an XML flavor that has all the formatting.
Is there an API call we can make to get that XML so we can put it on the clipboard?
Or is there a way to call the default keyboard handlers from our keyboard handlers after we do our policy processing?