From c43e4173940a7831cdc9cc3d418df73615ddcb83 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 14 Dec 2014 02:44:14 +0100 Subject: [PATCH] Fixed quotes being wrapped inside

which causes unwanted space --- .../files/js/3rdParty/redactor/plugins/wbbcode.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index e89b6c581c..6294a6cb78 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -1010,6 +1010,11 @@ RedactorPlugins.wbbcode = function() { } } + // remove

wrapping a quote + data = data.replace(/

<\/p>/g, '
'); + + console.debug(data); WCF.System.Event.fireEvent('com.woltlab.wcf.redactor', 'afterConvertToHtml', { data: data }); return data; @@ -1592,6 +1597,11 @@ RedactorPlugins.wbbcode = function() { $tagName = 'DIV'; } + console.debug(referenceElement); + console.debug(target); + console.debug(referenceElement[target]); + console.debug(""); + // no previous/next element or it is not a

(default) or

(within quotes) if (referenceElement[target] === null || referenceElement[target].tagName !== $tagName) { $('<' + $tagName + '>' + this.opts.invisibleSpace + '')[(target === 'previousElementSibling' ? 'insertBefore' : 'insertAfter')](referenceElement); -- 2.20.1