Add a 'linkified' class.
This commit is contained in:
parent
fc745767c4
commit
abfbd734aa
@ -53,10 +53,10 @@ Linkify =
|
|||||||
createLink: (link) ->
|
createLink: (link) ->
|
||||||
unless /^[a-z][\w-]+:/.test link
|
unless /^[a-z][\w-]+:/.test link
|
||||||
link = "http://#{link}"
|
link = "http://#{link}"
|
||||||
a = $.el 'a',
|
$.el 'a',
|
||||||
href: link
|
href: link
|
||||||
|
className: 'linkified'
|
||||||
target: '_blank'
|
target: '_blank'
|
||||||
a
|
|
||||||
|
|
||||||
surround: (anchor, range, boundaries) ->
|
surround: (anchor, range, boundaries) ->
|
||||||
{startOffset, endOffset, startNode, endNode} = boundaries
|
{startOffset, endOffset, startNode, endNode} = boundaries
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user