I am using editor.
I need to restrict the user to modify the content of editor based on some condition
so, i block the editor by onkeydown event.
i need to this in IE(. it works well for delete and back space. but not work in tab key.
it event is fired on pressing tab key, my code return false also.
but, editor shows the tab space between two letters, if the user press tab between two letters.
i need to avoid this.
Thanks,
Uma
I need to restrict the user to modify the content of editor based on some condition
so, i block the editor by onkeydown event.
editor.attachEventHandler("onkeydown", function (e) {
keepGoing = true;
var keyCode = ('which' in e) ? e.which : e.keyCode;
edittingKey = (keyCode == 8 /*backspace*/) || (keyCode == 46 /*delete*/) || (keyCode == 9 /*tab*/);
if (edittingKey) {
keepGoing = false;
}
return keepGoing;
});
i need to this in IE(. it works well for delete and back space. but not work in tab key.
it event is fired on pressing tab key, my code return false also.
but, editor shows the tab space between two letters, if the user press tab between two letters.
i need to avoid this.
Thanks,
Uma