From 423b392889e3ab8c572394923a0ec60b4b036ee2 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 14 Dec 2014 14:05:20 +0100 Subject: [PATCH] Removing linebreak after [/quote] in getText() --- .../install/files/js/3rdParty/redactor/plugins/wutil.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; }, /** -- 2.20.1