From 6ffa286018625185902ed8fac45aaf841123fd43 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 27 Oct 2014 15:35:23 +0100 Subject: [PATCH] Fixed quotes and italic formatting --- .../install/files/js/3rdParty/redactor/plugins/wbbcode.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 80c02013c6..f4bb9637a2 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -278,7 +278,7 @@ RedactorPlugins.wbbcode = function() { html = html.replace(/<\/(?:b|strong)>/gi, '[/b]'); // [i] - html = html.replace(/<(?:i|em)>/gi, '[i]'); + html = html.replace(/<(?:i|em)[^>]*>/gi, '[i]'); html = html.replace(/<\/(?:i|em)>/gi, '[/i]'); // [u] @@ -1182,7 +1182,7 @@ RedactorPlugins.wbbcode = function() { $('' + WCF.Language.get('wcf.bbcode.quote.edit') + '').click($.proxy(function(e) { e.preventDefault(); - this._openQuoteEditOverlay($(event.currentTarget).closest('blockquote.quoteBox'), false); + this.wbbcode._openQuoteEditOverlay($(event.currentTarget).closest('blockquote.quoteBox'), false); $('.redactor-link-tooltip').remove(); }, this)).appendTo($tooltip); @@ -1233,7 +1233,7 @@ RedactorPlugins.wbbcode = function() { this.wbbcode._updateQuoteHeader(quote); - this.modalClose(); + this.modal.close(); }, this)); } -- 2.20.1