Fixed pasting of paragraphs
authorAlexander Ebert <ebert@woltlab.com>
Tue, 20 Dec 2016 11:12:24 +0000 (12:12 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 20 Dec 2016 11:12:31 +0000 (12:12 +0100)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js

index 060c3b76162c848727123b065f03b6899936172e..852ce1b8a4ae195bab90907d8005a41c41d0d89a 100644 (file)
@@ -191,6 +191,8 @@ $.Redactor.prototype.WoltLabClean = function() {
                                        
                                        if (parent.nodeName === 'P') {
                                                var p = elCreate('p');
+                                               p.innerHTML = '<br>';
+                                               
                                                while (marker.nextSibling) {
                                                        p.appendChild(marker.nextSibling);
                                                }