From: Alexander Ebert Date: Fri, 13 Feb 2015 20:20:47 +0000 (+0100) Subject: Fixed detection of embedded attachments X-Git-Tag: 2.1.0_RC_1~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a1dfb3ec1f4688a6e94a13dde94c8b9ac57379c9;p=GitHub%2FWoltLab%2FWCF.git Fixed detection of embedded attachments --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 8aaf664184..95d12408bf 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -515,7 +515,7 @@ RedactorPlugins.wbbcode = function() { html = html.replace(/ ?]*?class="smiley" alt="([^"]+?)".*?> ?/gi, ' $1 '); // chrome, ie // attachments - html = html.replace(//gi, function(match, attributesBefore, attributesAfter) { + html = html.replace(//gi, function(match, attributesBefore, attributesAfter) { var $attributes = attributesBefore + ' ' + attributesAfter; var $attachmentID; if ($attributes.match(/data-attachment-id="(\d+)"/)) {