From: Alexander Ebert Date: Sun, 14 Dec 2014 13:05:20 +0000 (+0100) Subject: Removing linebreak after [/quote] in getText() X-Git-Tag: 2.1.0_Beta_1~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=423b392889e3ab8c572394923a0ec60b4b036ee2;p=GitHub%2FWoltLab%2FWCF.git Removing linebreak after [/quote] in getText() --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js index 89905b823d..78ac18bdcb 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js @@ -206,7 +206,12 @@ RedactorPlugins.wutil = function() { this.$textarea.val($.trim(this.wbbcode.convertFromHtml($html))); } - return $.trim(this.$textarea.val()); + var $text = $.trim(this.$textarea.val()); + + // remove linebreak after [/quote] + $text = $text.replace(/\[\/quote\]\n/g, '[/quote]'); + + return $text; }, /**