Improved handling of empty paragraphs
authorAlexander Ebert <ebert@woltlab.com>
Tue, 6 Sep 2016 10:59:31 +0000 (12:59 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 6 Sep 2016 10:59:31 +0000 (12:59 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js

index 02c15009cfca6b3388d8c51001c07f65a7ffce52..a3d17e5c59ce4f02b46a6dd7c7fa7e4040b371fa 100644 (file)
@@ -30,6 +30,8 @@ $.Redactor.prototype.WoltLabClean = function() {
                                        html = div.innerHTML;
                                }
                                
+                               html = html.replace(/<p>\u200B<\/p>/g, '<p><br></p>');
+                               
                                html = mpOnSync.call(this, html);
                                
                                div.innerHTML = html;