Add a 'linkified' class.

This commit is contained in:
Mayhem 2013-08-20 00:05:41 +02:00
parent fc745767c4
commit abfbd734aa

View File

@ -53,10 +53,10 @@ Linkify =
createLink: (link) ->
unless /^[a-z][\w-]+:/.test link
link = "http://#{link}"
a = $.el 'a',
$.el 'a',
href: link
className: 'linkified'
target: '_blank'
a
surround: (anchor, range, boundaries) ->
{startOffset, endOffset, startNode, endNode} = boundaries