Fixed linebreaks between two succeeding [tt]/[code]
authorAlexander Ebert <ebert@woltlab.com>
Thu, 16 Apr 2015 18:32:18 +0000 (20:32 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 16 Apr 2015 18:32:18 +0000 (20:32 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index f96eefdd8792d50a898d22dbe70ec3be2aa5248d..b94530da4146a0a1d95c9ac8c18aca146d727ac7 100644 (file)
@@ -1299,7 +1299,6 @@ RedactorPlugins.wbbcode = function() {
                                for (var $i = $cachedCodes.length - 1; $i >= 0; $i--) {
                                        var $cachedCode = $cachedCodes[$i];
                                        var $regex = new RegExp('@@' + $cachedCode.key + '@@', 'g');
-                                       
                                        var $value = $cachedCode.value;
                                        
                                        // [tt]
@@ -1412,7 +1411,7 @@ RedactorPlugins.wbbcode = function() {
                                                + '</div>';
                                        }).bind(this));
                                        
-                                       data = data.replace(new RegExp('(?:<p>)?(@@' + $cachedCode.key + '@@)(?:<\/p>)?', 'g'), '$1');
+                                       //data = data.replace(new RegExp('(?:<p>)?(@@' + $cachedCode.key + '@@)(?:<\/p>)?', 'g'), '$1');
                                        data = data.replace($regex, $value);
                                }
                        }