Fixed newline handling in list items
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Aug 2015 11:39:53 +0000 (13:39 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Aug 2015 11:39:53 +0000 (13:39 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 89c1b6aaff63e2bc2160e8ffa2a5e16ff64aa4e8..ac02fb6be67f2f7d8c844f861b705c798479cf4d 100644 (file)
@@ -1187,7 +1187,7 @@ RedactorPlugins.wbbcode = function() {
                        // line-breaks within list items must be a <br> instead of <p></p>
                        var $listItems = [ ];
                        data = data.replace(/(<li>[\s\S]*?<\/li>)/g, function(match) {
-                               match = $.trim(match).replace(/\n/, '<br>');
+                               match = $.trim(match).replace(/\n/g, '<br>');
                                
                                var $key = WCF.getUUID();
                                $listItems.push({