Need help with turning URLs into hyperlinks

It turns URLs into hyperlinks only if I press the space bar or Enter after I type a URL. I want it to turn a URL into a hyperlink as soon as I finish typing it (right after I finish typing .com, .org, .net, etc). I am guessing it has something to do with startOffset / endOffset/ start / end / rng but I can't figure it out:


tinymce.PluginManager.add('autolink', function(editor) {
    var AutoUrlDetectState;
    var AutoLinkPattern =...
Code (markup):
Need help with turning URLs into hyperlinks

from JavaScript http://ift.tt/20MDJDj
via IFTTT
Previous
Next Post »
Thanks for your comment