I have this snippet:
<div contenteditable="true"> father
<a contenteditable="false" href="#"> myLink </a>
</div>
My problem is that if I place caret after
</a>
and I try to backspace for remove myLink html tag, It doesn't work in firefox, but it works in chorme, opera, safari and explorer. Other hand if in firefox I select
<a contenteditable="false" href="#"> myLink </a>
and then delete it with backspace it works!.
Possible workaround It is range selecting of the element
<a contenteditable="false" href="#"> myLink </a>
programmatically when user digit backspace key.
How can I do this in jquery? If the caret cursor is after
</a>
and user digit backspace I want select
<a contenteditable="false" href="#"> myLink </a>
and remove that node.