1
我想知道在您输入“www.example.com”时是否有JavaScript会自动将文本转换为链接?带有Javascript/jQuery的自动完成链接(contentEditable)
HTML
<div id="test">
If I type in www.example.com I want it to become a link automatically.
</div>
的Javascript:
$(window).load(function(){
document.getElementById('test').contentEditable = true;
// how
});