From 11de0caabe6c2019bbed2bc905c0c65cd6119c9f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 28 Oct 2014 14:45:29 +0100 Subject: [PATCH] Fixed detection of embedded image 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 d558e2f2fc..7ad0f8d836 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -327,7 +327,7 @@ RedactorPlugins.wbbcode = function() { html = html.replace(/]*?class="smiley" alt="([^"]+?)".*?> ?/gi, '$1 '); // chrome, ie // attachments - html = html.replace(/]*?class="redactorEmbeddedAttachment" data-attachment-id="(\d+)"( style="float: (left|right)")?>/gi, function(match, attachmentID, styleTag, alignment) { + html = html.replace(/]*?class="redactorEmbeddedAttachment" data-attachment-id="(\d+)"( style="[^"]*float: (left|right)[^"]*")?>/gi, function(match, attachmentID, styleTag, alignment) { if (alignment) { return '[attach=' + attachmentID + ',' + alignment + '][/attach]'; } -- 2.20.1