JSFiddle - React, Tailwind, and code Playground

HTML

<div id='editor' contenteditable='true'>Hello</div>

JavaScript

$(function () {
    var $editor = $('#editor');
    $editor.on('paste',function(e) {
         e.preventDefault();
         var text = (e.originalEvent || e).clipboardData.getData('text/plain') || prompt('Paste something..');
         document.execCommand('insertText', false, text);
    });
    
    $('#editor').focus();
});