I have a content editable div with some html elements in it. For example, let's say I have:
<div contenteditable="true" id="myTextArea">
Some content, <div id="div1">content in div</div>,
and more <span id="span1">content</span></div>
When the user edits text in myTextArea and deletes some html element (either by pasting new content, or just backspacing text) I want each html element to fire an event and tell me that it was deleted. Any ideas on how I could do this?