Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoid transformation text to link ie contentEditable mode

In contenteditable div, in IE text like "http://blablabla", "www.blablabla", "bla@blabla" and so on automatically transforms into hyperlinks http://blablabla, www.blablabla, bla@blabla. How can I avoid this?

like image 624
Maxon Avatar asked Sep 26 '11 13:09

Maxon


1 Answers

Unfortunately, there is no cross-version solution. In IE9 there is opportunity, allowing to disable automatic hyperlinking:

document.execCommand("AutoUrlDetect", false, false);

More information: http://msdn.microsoft.com, http://bytes.com

like image 98
Maxon Avatar answered Oct 03 '22 15:10

Maxon