Hi Jim,
Thanks for your update.
Query #1 “I tried it using Excel On-Line and it does clear the selected value.”
We have checked the reported query and we can able to reproduce it in our end as per the following steps.
1. In ejSpreadsheet, select any cell and click “Copy” option in (Ribbon or Context menu) by using mouse click and not using keyboard interaction (i.e. Ctrl + C).
2. After pressing Escape key, the previous copied data get pasted by clicking “Paste” option in (Ribbon or Context menu) by using mouse click. But in online MS Excel, you could get an alert dialog when clicking paste button as like follows,
Could you please confirm whether the above replication procedures are same as that you are facing in your end, so that it will be helpful for us to resolve your issue and proceed this further?
Query #2 “Is there a way to disable the Paste links through CSS or JS and still maintain it's ability to be enabled if I decide to copy other cells? I can capture the "paste" event so I know when it ends and would like to be able to disable Paste at that point.”
Your requirement for disable the Paste option in Ribbon can be achieved by using “XLRibbon.disableRibbonItems()” client-side method. Please refer the following code example.
$("#Spreadsheet").ejSpreadsheet({
//...
actionComplete: function (args) {
//...
this.XLRibbon.disableRibbonItems([this._id + "_Ribbon_Home_Clipboard_Paste"]);
},
});
|
For your convenience, we have prepared a sample to demonstrate this in JS Playground. Please refer the below sample link,
Regards,
Silambarasan I