Tagging @Daniel F for his opinion on this one - I believe that may be something that may need to be changed by Invision
It appears to be added by this block of code in ips.core.lightboxedImages.js
} else {
// This is an INLINE attachment
attachment.addClass('ipsAttachLink_inline');
attachment.attr('title', ips.getString('attachmentPending'));
attachment.attr('data-ipstooltip', true);
}
Earlier in the function, however, it states:
var attachments = this.scope.find('[data-fileid]').not( function (idx, elem) {
// We don't want to change any image/video attachments, so exclude those here
var elem = $(elem);
return elem.is('img, source, video') || elem.find('img, source, video').length;
});
Maybe audio also needs to be added there here too (seeing as you are excluding video/source)
var attachments = this.scope.find('[data-fileid]').not( function (idx, elem) {
// We don't want to change any image/video attachments, so exclude those here
var elem = $(elem);
return elem.is('img, source, video, audio') || elem.find('img, source, video, audio').length;
});
It might be possible to reverse the above using some JS in a plugin.