Fixed autosave
authorAlexander Ebert <ebert@woltlab.com>
Tue, 7 Oct 2014 12:47:20 +0000 (14:47 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 7 Oct 2014 12:47:20 +0000 (14:47 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js
wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js

index eda3ae94a9d7951ac523dd2725c46cb5bdc14b0b..7fdf6715a13632edf1cdacd0dc70267fb1111f6e 100644 (file)
@@ -699,7 +699,7 @@ RedactorPlugins.wbbcode = function() {
                        
                        // convert line breaks into <p></p> or empty lines to <p><br></p>
                        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) {
index 09083c9da279ade647b791cb2bbde6721458fcce..a47cb4f047414b2ca57b587faebe1cc02eab176a 100644 (file)
@@ -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()));
                        }