JSFiddle - React, Tailwind, and code Playground

HTML

<div class="e" contenteditable>
    <div class="clicker"></div>
    <p>Editable text</p>
</div>

CSS

.e { border:1px solid #000;padding:15px; }
.clicker { background:#ccc;height:50px;width:50px; }

JavaScript

$('.e').on('change',function(){
    alert('Keypressed');
});