Visualizing [tt] causes an unreliable behavior
authorAlexander Ebert <ebert@woltlab.com>
Sat, 13 Dec 2014 00:54:14 +0000 (01:54 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 13 Dec 2014 00:54:14 +0000 (01:54 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 1022034ec06520f26ddc751a11dfa20c24e9e106..1d54d90cfab99ff7bd568306078e9e0f728f75af 100644 (file)
@@ -1001,7 +1001,7 @@ RedactorPlugins.wbbcode = function() {
                                        var $value = $cachedCode.value;
                                        
                                        // [tt]
-                                       $value = $value.replace(/^\[tt\](.*)\[\/tt\]/, '<span class="inlineCode">$1</span>');
+                                       //$value = $value.replace(/^\[tt\](.*)\[\/tt\]/, '<span class="inlineCode">$1</span>');
                                        
                                        // preserve leading whitespaces in [code] tags
                                        $value = $value.replace(/^\[code[^\]]*\][\S\s]*\[\/code\]$/, '<pre>$&</pre>');