More dirty work-arounds
authorAlexander Ebert <ebert@woltlab.com>
Mon, 31 Mar 2014 23:02:44 +0000 (01:02 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 31 Mar 2014 23:02:44 +0000 (01:02 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js

index 4381336401568cee5acfb27c0cd14808594e7377..031289470ccb2022e15dfa20be3ec4e403a6df07 100644 (file)
@@ -164,9 +164,13 @@ RedactorPlugins.wutil = {
         */
        submit: function() {
                if (this.inWysiwygMode()) {
-                       this.sync();
+                       this.toggle();
+                       
+                       var $content = this.$source.val();
+                       
+                       this.toggle();
                        
-                       this._convertFromHtml();
+                       this.$source.val($content);
                }
                
                this.autosavePurge();