JSFiddle - React, Tailwind, and code Playground
HTML
<div class="editable">This is level'd text</div>
CSS
.editable {
-webkit-user-modify:read-write;
-moz-user-modify: read-write;
user-modify: read-write;
padding:20px;
}
.editable * {
unset: all !important;
}
JavaScript
$('.editable').on('paste', function () {
var element = this;
setTimeout(function () {
$('.editable').find('*').contents().unwrap().removeAttr( 'style' );
$('.editable *:empty').remove();
}, 0);
});