From: Alexander Ebert
'; + + content += '[tt]' + $line + '[/tt]'; + } + else { + if ($i === 0 || ($i + 1) === $length) { + // ignore the first and last empty element + continue; + } + + if (content.match(/\[\/tt\]$/)) { + content += '
' + this.opts.invisibleSpace + ''; + } + else { + content += '
';
+ }
+ }
+ }
+
+ return content;
+ }).bind(this));
// [code]
$value = $value.replace(/^\[code([^\]]*)\]([\S\s]*)\[\/code\]$/, (function(matches, parameters, content) {
diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbutton.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbutton.js
index 2485356f5e..7ea3d5e511 100644
--- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbutton.js
+++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbutton.js
@@ -161,6 +161,7 @@ RedactorPlugins.wbutton = function() {
if ($eventData.cancel === false) {
var $selectedHtml = this.selection.getHtml();
+ $selectedHtml = $selectedHtml.replace(/
@@@wcf_empty_line@@@<\/p>/g, '