JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<label id="label_1" contenteditable="false"
ondblclick="doubleClick(document.getElementById('label_1'));">
Hey, I just met you and this is crazy. But, here's my number and call
me maybe.
</label>
<script>
function doubleClick(elem) {
elem.setAttribute("contenteditable", "true");
elem.focus();
}
</script>
JavaScript
$( document ).ready(function() {
document.getElementById('label_1').onselectstart = function() { return false; }
});