From: Alexander Ebert Date: Mon, 31 Mar 2014 20:33:34 +0000 (+0200) Subject: Dirty work-around for getText() in WYSIWYG-mode X-Git-Tag: 2.1.0_Alpha_1~926 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea365b27ee7001592452d022860413defe4e3d78;p=GitHub%2FWoltLab%2FWCF.git Dirty work-around for getText() in WYSIWYG-mode --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js index fc5075c65e..4381336401 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js @@ -148,9 +148,12 @@ RedactorPlugins.wutil = { */ getText: function() { if (this.inWysiwygMode()) { - this.sync(); + this.toggle(); - this._convertFromHtml(); + var $content = this.$source.val(); + + this.toggle(); + return $content; } return this.$source.val();