Skip to content
Snippets Groups Projects
Commit 462ccf89 authored by Matthew Hodgson's avatar Matthew Hodgson
Browse files

inplace-edit on attribs

parent c3e96f8a
No related branches found
No related tags found
No related merge requests found
......@@ -49,11 +49,12 @@ var sanitizeHtmlParams = {
'a': function(tagName, attribs) {
var m = attribs.href ? attribs.href.match(linkifyMatrix.VECTOR_URL_PATTERN) : null;
if (m) {
return { tagName: 'a', attribs: { href: attribs.href, name: attribs.name } };
delete attribs.target;
}
else {
return { tagName: 'a', attribs: { href: attribs.href, name: attribs.name, target: '_blank' } };
attribs.target = '_blank';
}
return attribs;
},
},
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment