I have a content editable div and I am looking to prevent the undo operation (control + z) on this editable div. I attempted the following approach:
// The keyup function handles all keypress events. Backspace won't fire for a simple keypress event in jQuery
$("#Partner").keyup(function (e) {
if (e.keyCode == 90) {
e.preventDefault();
return;
}
Although I implemented the above code, I am still able to perform the undo operation. Any suggestions on how to effectively disable undo on an editable div?