@if (Model.CanMaintainNcrLineManagement) {
<tr>
<td>@Html.TextAreaFor(model => model.Description, new { id = "txArNcrLineDescriptionValue", @style = "height:520px" })</td>
</tr>
} else {
<tr class="read-only-editor">
<td>@Html.TextAreaFor(model => model.Description, new { id = "txArNcrLineDescriptionReadOnly", @style = "height:520px" })</td>
</tr>
}
I want to disable the copy-past option from the text editor box. I have used below both codes to disable it but its not working. Please give me some solution
$('body').bind('copy paste', function(e) {
e.preventDefault();
return false;
});
<body oncopy="return false" oncut="return false" onpaste="return false">