From: Alexander Ebert Date: Wed, 24 Dec 2014 13:10:40 +0000 (+0100) Subject: Properly preserve smilies by adding a leading whitespace X-Git-Tag: 2.1.0_Beta_3~91 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=53cc1b32d48d7797d8e0c287a49f1e637c27f769;p=GitHub%2FWoltLab%2FWCF.git Properly preserve smilies by adding a leading whitespace --- 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) {