From 53cc1b32d48d7797d8e0c287a49f1e637c27f769 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 24 Dec 2014 14:10:40 +0100 Subject: [PATCH] Properly preserve smilies by adding a leading whitespace --- .../install/files/js/3rdParty/redactor/plugins/wbbcode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index edf53ac67d..0d428ca7ef 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -473,8 +473,8 @@ RedactorPlugins.wbbcode = function() { }); // smileys - html = html.replace(/]*?alt="([^"]+?)" class="smiley".*?> ?/gi, '$1 '); // firefox - html = html.replace(/]*?class="smiley" alt="([^"]+?)".*?> ?/gi, '$1 '); // chrome, ie + html = html.replace(/ ?]*?alt="([^"]+?)" class="smiley".*?> ?/gi, ' $1 '); // firefox + html = html.replace(/ ?]*?class="smiley" alt="([^"]+?)".*?> ?/gi, ' $1 '); // chrome, ie // attachments html = html.replace(/]*?class="redactorEmbeddedAttachment[^"]*" data-attachment-id="(\d+)"( style="([^"]+)")?>/gi, function(match, attachmentID, styleTag, style) { -- 2.20.1