Roo/htmleditor/FilterParagraph.js
authorleon <leon@roojs.com>
Thu, 30 Nov 2023 03:59:42 +0000 (11:59 +0800)
committerleon <leon@roojs.com>
Thu, 30 Nov 2023 03:59:42 +0000 (11:59 +0800)
Roo/htmleditor/FilterParagraph.js

index 6094b61..295f026 100644 (file)
@@ -28,7 +28,7 @@ Roo.extend(Roo.htmleditor.FilterParagraph, Roo.htmleditor.Filter,
             node.childNodes[0].textContent.trim().length < 1
             ) {
             // remove and replace with '<BR>';
-            node.parentNode.replaceChild(node.ownerDocument.createElement('HR'),node);
+            node.parentNode.replaceChild(node.ownerDocument.createElement('BR'),node);
             return false; // no need to walk..
         }