From: Alexander Ebert Date: Tue, 26 Aug 2014 17:35:07 +0000 (+0200) Subject: Fixed autosave-restore not converting BBCodes X-Git-Tag: 2.1.0_Alpha_1~403 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c59f5e046ead870a2ef301bd8a0577955879dd00;p=GitHub%2FWoltLab%2FWCF.git Fixed autosave-restore not converting BBCodes --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js index 8bf1d7a275..3e05818331 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js @@ -243,10 +243,7 @@ RedactorPlugins.wutil = { var $text = localStorage.getItem($options.key); if ($text !== null) { if (this.inWysiwygMode()) { - this.toggle(false); - this.$source.val($text); - this.toggle(false); - this.focusEnd(); + this.setOption('wOriginalValue', $text); } else { this.$source.val($text);