From: Alexander Ebert Date: Thu, 19 Feb 2015 17:05:38 +0000 (+0100) Subject: Removed debug code X-Git-Tag: 2.1.0_RC_2~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86af9f56d2241d16600b4f35d5e717b479424407;p=GitHub%2FWoltLab%2FWCF.git Removed debug code --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 727dc6048c..f91083bca7 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -230,8 +230,7 @@ RedactorPlugins.wbbcode = function() { */ convertFromHtml: function(html) { WCF.System.Event.fireEvent('com.woltlab.wcf.redactor', 'beforeConvertFromHtml', { html: html }); - console.debug(html); - console.debug(""); + // remove data-redactor-tag="" attribute html = html.replace(/(<[^>]+?) data-redactor-tag="[^"]+"/g, '$1'); @@ -286,7 +285,7 @@ RedactorPlugins.wbbcode = function() { // remove
right in front of

(does not match


since it has been converted already) html = html.replace(/<\/p>/g, '

'); - console.debug(html); + // convert paragraphs into single lines var $parts = html.split(/(<\/?(?:div|p)>)/); var $tmp = '';