JSFiddle - React, Tailwind, and code Playground

by x7ee1

HTML

<div contenteditable=true>
  <a id=lnk href="http://www.google.com">http://www.google.com</a>
</div>

SCSS

div{
  -moz-appearance:textfield; // or -webkit-
  a{
    cursor:pointer;
  }
}

JavaScript

var lnk=document.getElementById('lnk');
lnk.addEventListener('click',()=>{
	window.location.href = lnk.getAttribute('href');
});