JSFiddle - React, Tailwind, and code Playground
by aminur
HTML
<div id="div">
<input type="text" />
</div>
JavaScript
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
var eventListenerString;
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./))
eventListenerString = "textinput";
else
eventListenerString = "textInput";
document.getElementById("div").addEventListener(eventListenerString, function() {
alert("contenteditable fires input");
});