| | | Viral Jain |  |
| Posted: Thu Aug 21, 2008 7:23 am Post subject: Disable Backspace based on criteria |  |
Hi,
We have created HTML Editor using designMode and contentEditable properties of Internet Explorer.
User can design the whole page. Our requirement is: We do not want to allow users to delete any buttons. So, we trapped delete and backspace and other keys like Ctrl+X. Everything else seem to be working fine except BACKSPACE.
We cannot get the Element/Html/Text that is going to be deleted when Backspace is pressed. We tried TextRange.move('character', -1); but it does not move the selection at all.
Could you please help us with this?
Many thanks, Viral. |
|