JSFiddle - React, Tailwind, and code Playground
by rwaldron
HTML
<a href="http://bugs.jquery.com/ticket/5539">ticket #5539</a>
jQuery will have the parent node as target of the DOMCharacterDataModified, while the original event has the actual text node as a target.
<div id="ce" contenteditable="true">Edit this text (just click in it and type).</div>
CSS
#ce { padding: 10px;border:1px solid }
JavaScript
$("#ce").bind("DOMCharacterDataModified", function (e) {
console.log([
e,
e.type,
e.target,
e.originalEvent.target
]);
});