Fixed dollar signs incorrectly treated inside [code]
authorAlexander Ebert <ebert@woltlab.com>
Tue, 8 Sep 2015 11:13:54 +0000 (13:13 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 8 Sep 2015 11:13:54 +0000 (13:13 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 50f8342bc5a72f559307891bc8e2df1a9cab1aea..232026cf55ac8ec0c4e51e0928251d7ac5dcf116 100644 (file)
@@ -844,8 +844,7 @@ RedactorPlugins.wbbcode = function() {
                                        }
                                        
                                        var $bbcode = '[code' + ($attributes.length ? '=' + $attributes : '') + ']' + listing.codeContent + '[/code]\n';
-                                       
-                                       html = html.replace(new RegExp('@@@' + uuid + '@@@\n?', 'g'), $bbcode);
+                                       html = html.replace(new RegExp('@@@' + uuid + '@@@\n?', 'g'), $bbcode.replace(/\$/g, '$$$'));
                                });
                        }