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

index 9025014..97bed61 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('BR'),node);
+            node.parentNode.replaceChild(node.ownerDocument.createElement('HR'),node);
             return false; // no need to walk..
         }