Avoid converting text to link, i.e. contentEditable mode

In the contenteditable div in the text of IE, for example, http: // blablabla "," www.blablabla "," bla @blabla "etc. is automatically converted to hyperlinks http: // blablabla , www.blablabla , bla@blabla How can I avoid this?

+6
source share
1 answer

Unfortunately, there is no solution for cross versions. IE9 has a feature that allows you to disable automatic hyperlink:

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

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

+10
source

Source: https://habr.com/ru/post/898073/


All Articles