Revert "Removed debug code"
authorAlexander Ebert <ebert@woltlab.com>
Wed, 8 Jul 2015 09:04:13 +0000 (11:04 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 8 Jul 2015 09:04:13 +0000 (11:04 +0200)
This reverts commit e04f22e721e741c71ec4ed513ac6ad6d2d40e8d4.

wcfsetup/install/files/js/3rdParty/redactor/redactor.js

index 77da0f229087e01b5d10fece44436b4e6e580904..f3dc12ac1588a93430fddb6c6cfcaca6b757b434 100644 (file)
                                        html = html.replace(/\$/g, '&#36;');
 
                                        // replace special characters in links
-                                       html = html.replace(/<a href="(.*?[^>]?)��(.*?[^>]?)">/gi, '<a href="$1&reg$2">');
+                                       html = html.replace(/<a href="(.*?[^>]?)®(.*?[^>]?)">/gi, '<a href="$1&reg$2">');
 
                                        if (this.opts.replaceDivs) html = this.clean.replaceDivs(html);
                                        if (this.opts.linebreaks)  html = this.clean.replaceParagraphsToBr(html);
 
                                                if (this.utils.isCurrentOrParent('PRE'))
                                                {
-                                                       html = html.replace(/���/g, '"');
-                                                       html = html.replace(/���/g, '"');
-                                                       html = html.replace(/���/g, '\'');
-                                                       html = html.replace(/���/g, '\'');
+                                                       html = html.replace(//g, '"');
+                                                       html = html.replace(//g, '"');
+                                                       html = html.replace(//g, '\'');
+                                                       html = html.replace(//g, '\'');
 
                                                        return this.clean.getPreCode(html);
                                                }
                                                html = $div.html();
 
                                                // remove ms word's bullet
-                                               html = html.replace(/��/g, '');
+                                               html = html.replace(/·/g, '');
                                                html = html.replace(/<p class="Mso(.*?)"/gi, '<p');
 
                                                // classes
                                        html = html.replace(/<img src="webkit-fake-url\:\/\/(.*?)"(.*?)>/gi, '');
 
                                        // bullets
-                                       html = html.replace(/<p>���([\w\W]*?)<\/p>/gi, '<li>$1</li>');
+                                       html = html.replace(/<p>([\w\W]*?)<\/p>/gi, '<li>$1</li>');
 
                                        // FF fix
                                        if (this.utils.browser('mozilla'))
                                },
                                restoreSelectionMarker: function(html)
                                {
-                                       html = html.replace(/&lt;span id=&quot;selection-marker-([0-9])&quot; class=&quot;redactor-selection-marker&quot; data-verified=&quot;redactor&quot;&gt;���&lt;\/span&gt;/g, '<span id="selection-marker-$1" class="redactor-selection-marker" data-verified="redactor">���</span>');
+                                       html = html.replace(/&lt;span id=&quot;selection-marker-([0-9])&quot; class=&quot;redactor-selection-marker&quot; data-verified=&quot;redactor&quot;&gt;​&lt;\/span&gt;/g, '<span id="selection-marker-$1" class="redactor-selection-marker" data-verified="redactor">​</span>');
 
                                        return html;
                                },
                                        else
                                        {
                                                this.$textarea.height(height).show().focus();
+                                               console.debug(height);
+                                               console.debug(this.$textarea[0].outerHTML);
                                                this.$textarea.on('keydown.redactor-textarea-indenting', this.code.textareaIndenting);
 
                                                $(window).scrollTop(scroll);