From ea365b27ee7001592452d022860413defe4e3d78 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 31 Mar 2014 22:33:34 +0200 Subject: [PATCH] Dirty work-around for getText() in WYSIWYG-mode --- .../install/files/js/3rdParty/redactor/plugins/wutil.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(); -- 2.20.1