From abfbd734aa7c2cf78a1875d4d1f85177656769ab Mon Sep 17 00:00:00 2001 From: Mayhem Date: Tue, 20 Aug 2013 00:05:41 +0200 Subject: [PATCH] Add a 'linkified' class. --- src/Linkification/Linkify.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 1665e276a..ba9125f5a 100644 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -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