Removed debug code
authorAlexander Ebert <ebert@woltlab.com>
Mon, 29 Jul 2013 15:44:50 +0000 (17:44 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 29 Jul 2013 15:44:50 +0000 (17:44 +0200)
wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js

index 780a8dc1a0a018391c26b68a4424699e6b62694c..e88d4139380ff6fb65b86c9b6891ba71941f55a6 100644 (file)
@@ -13,7 +13,6 @@
                 * Fixes issues with pasted html.
                 */
                event.editor.on('paste', function(ev) {
-                       console.debug("currentValue = " + ev.data.dataValue);
                        if (ev.data.type == 'html') {
                                var $value = ev.data.dataValue;
                                
                                
                                // convert lists into new lines
                                $value = $value.replace(/<\/li>/gi, "\n");
-                               console.debug($value);
                                // remove html tags
                                $value = $value.replace(/<[^>]+>/g, '');
                                
                                // fix multiple new lines
                                $value = $value.replace(/\n{3,}/gi,"\n\n");
                                
-                               window.dtdesign = $value;
-                               
                                ev.data.dataValue = $value;
                                
                                $pasted = true;
         * Converts html to bbcodes.
         */
        var toDataFormat = function(html, fixForBody) {
-               console.debug("toDataFormat");
                if (html == '<br>' || html == '<p><br></p>') {
                        return "";
                }
                html = html.replace(/%20/g, ' ');
                
                return html;
-       }
+       };
 })();