From: Alexander Ebert Date: Tue, 7 Oct 2014 12:47:20 +0000 (+0200) Subject: Fixed autosave X-Git-Tag: 2.1.0_Alpha_1~263 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a325c4706130820f3e23fc75b5c4e078b52f2f7e;p=GitHub%2FWoltLab%2FWCF.git Fixed autosave --- 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())); }