How to prevent block element from being deleted #5444
-
|
Hi there. I am trying to prevent a block element to be deleted. But if the cursor stays just before the block element, using the same logic in deleteForward method does not work for me, and I still can delete my block element by pressing delete btn. Can anybody help me with this? How can I prevent my block element from being deleted by pressing delete/backspace btn? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Solved by such a code: The |
Beta Was this translation helpful? Give feedback.
Solved by such a code: