@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 am looking to prevent users from copying and pasting text in the editor box. Despite trying the codes below, it hasn't been successful. Any suggestions for a solution?
$('body').bind('copy paste', function(e) {
e.preventDefault();
return false;
});
<body oncopy="return false" oncut="return false" onpaste="return false">