From a1dfb3ec1f4688a6e94a13dde94c8b9ac57379c9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 13 Feb 2015 21:20:47 +0100 Subject: [PATCH] Fixed detection of embedded attachments --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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+)"/)) { -- 2.20.1