Posted 12 March 2020, 7:06 am EST
Hi Roger,
If you would like to disable the custom context menu displayed by C1Editor which has three options cut, copy, paste. It can be disabled by setting the CustomContextMenu to false. Please refer to the following code snippet:
<wijmo:C1Editor ID="C1Editor1" runat="server" CustomContextMenu="False">
</wijmo:C1Editor>
The following code snippet can be used to prevent the default browser contextmenu for Source View. But the Design View’s contextmenu can’t be prevented.
<script>
$(function () {
var editor = "#C1Editor1";
$(editor).contextmenu(function (e) {
e.preventDefault();
e.stopImmediatePropagation();
e.stopPropagation();
});
})
</script>
Regards,
Manish Gupta