inplace-edit on attribs

pull/21833/head
Matthew Hodgson 2016-03-21 15:54:02 +00:00
parent c3e96f8af1
commit 462ccf89d7
1 changed files with 3 additions and 2 deletions

View File

@ -49,11 +49,12 @@ var sanitizeHtmlParams = {
'a': function(tagName, attribs) { 'a': function(tagName, attribs) {
var m = attribs.href ? attribs.href.match(linkifyMatrix.VECTOR_URL_PATTERN) : null; var m = attribs.href ? attribs.href.match(linkifyMatrix.VECTOR_URL_PATTERN) : null;
if (m) { if (m) {
return { tagName: 'a', attribs: { href: attribs.href, name: attribs.name } }; delete attribs.target;
} }
else { else {
return { tagName: 'a', attribs: { href: attribs.href, name: attribs.name, target: '_blank' } }; attribs.target = '_blank';
} }
return attribs;
}, },
}, },
}; };