Properly trimming preview text
authorAlexander Ebert <ebert@woltlab.com>
Sun, 2 Nov 2014 12:24:52 +0000 (13:24 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 2 Nov 2014 12:24:52 +0000 (13:24 +0100)
wcfsetup/install/files/js/WCF.Message.js

index a72f92ee2657444327c96387ca00231dc2d76002..bccc3d4c1ed15115b28c9ed56829c477b753c520 100644 (file)
@@ -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');