Resetting editor did not properly revert to initial state
authorAlexander Ebert <ebert@woltlab.com>
Tue, 26 Aug 2014 14:35:24 +0000 (16:35 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 26 Aug 2014 14:35:24 +0000 (16:35 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js

index a4a84b98bb232a675d39efa2b6b846466244d679..8bf1d7a275f7aa7bd7403aa758fd785d2865304d 100644 (file)
@@ -170,7 +170,7 @@ RedactorPlugins.wutil = {
         */
        reset: function() {
                if (this.inWysiwygMode()) {
-                       this.$editor.empty();
+                       this.$editor.html('<p>' + this.opts.invisibleSpace + '</p>');
                        this.sync();
                }
                else {