Fixed autosave-restore not converting BBCodes
authorAlexander Ebert <ebert@woltlab.com>
Tue, 26 Aug 2014 17:35:07 +0000 (19:35 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 26 Aug 2014 17:35:07 +0000 (19:35 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js

index 8bf1d7a275f7aa7bd7403aa758fd785d2865304d..3e058183312e1b0c6aa64f5d0682d7e77facced4 100644 (file)
@@ -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);