From: Alexander Ebert Date: Sun, 2 Nov 2014 12:24:52 +0000 (+0100) Subject: Properly trimming preview text X-Git-Tag: 2.1.0_Alpha_1~103 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f109309411f44a01320e2b015be47f668233956;p=GitHub%2FWoltLab%2FWCF.git Properly trimming preview text --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index a72f92ee26..bccc3d4c1e 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -389,7 +389,7 @@ WCF.Message.Preview = Class.extend({ */ _getMessage: function() { if (!$.browser.redactor) { - return this._messageField.val(); + return $.trim(this._messageField.val()); } else if (this._messageField.data('redactor')) { return this._messageField.redactor('wutil.getText');