From a325c4706130820f3e23fc75b5c4e078b52f2f7e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 7 Oct 2014 14:47:20 +0200 Subject: [PATCH] Fixed autosave --- .../install/files/js/3rdParty/redactor/plugins/wbbcode.js | 4 +--- wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index eda3ae94a9..7fdf6715a1 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -699,7 +699,7 @@ RedactorPlugins.wbbcode = function() { // convert line breaks into

or empty lines to


var $tmp = data.split("\n"); - console.debug($tmp); + data = ''; for (var $i = 0, $length = $tmp.length; $i < $length; $i++) { var $line = $.trim($tmp[$i]); @@ -727,8 +727,6 @@ RedactorPlugins.wbbcode = function() { } } - console.debug(data); - // insert codes if ($.getLength($cachedCodes)) { for (var $key in $cachedCodes) { diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js index 09083c9da2..a47cb4f047 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js @@ -162,7 +162,7 @@ RedactorPlugins.wutil = function() { * @return string */ getText: function() { - if (this.inWysiwygMode()) { + if (this.wutil.inWysiwygMode()) { this.code.startSync(); this.$textarea.val(this.wbbcode.convertFromHtml(this.$textarea.val())); } -- 2.20.1