JSFiddle - React, Tailwind, and code Playground
by zedsaid
HTML
<button id="update" value="Update">Update</button>
<div id="editor" contenteditable="true">
<p>jklj<strong>kljkljjkljkljlk</strong>jkljlkj</p>
</div>
JavaScript
$('#editor').bind('click', function(e) {
console.log(document.activeElement.nodeName.toLowerCase());
});