JSFiddle - React, Tailwind, and code Playground

HTML

<p id="cont" contenteditable="true">This is an editablee paragraph.</p>

JavaScript

$("#cont").keypress(function() {
    console.log("Keypress " + Math.random());
});

$("#cont").bind('paste', function(e){
    console.log("Paste " + Math.random());
});