mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
inplace-edit on attribs
This commit is contained in:
parent
c3e96f8af1
commit
462ccf89d7
@ -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;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user