Removing linebreak after [/quote] in getText()
authorAlexander Ebert <ebert@woltlab.com>
Sun, 14 Dec 2014 13:05:20 +0000 (14:05 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 14 Dec 2014 13:05:20 +0000 (14:05 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js

index 89905b823d3a7252ee06633339db63a8f237fb37..78ac18bdcb12c6c97fa11c27e4361c1a1e78aad4 100644 (file)
@@ -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;
                },
                
                /**