Roo/HtmlEditorCore.js
authorAlan Knowles <alan@roojs.com>
Thu, 26 Sep 2019 02:14:40 +0000 (10:14 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 26 Sep 2019 02:14:40 +0000 (10:14 +0800)
Roo/HtmlEditorCore.js

index a556952..10942ee 100644 (file)
@@ -1040,15 +1040,9 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         
         var remove_keep_children= Roo.HtmlEditorCore.remove.indexOf(node.tagName.toLowerCase()) > -1;
         
-        
-        if (!node.attributes || !node.attributes.length) {
-            
-            if (lcname == 'span' //&&
-                //node.childNodes.length == 1 &&
-                //node.childNodes[0].nodeName.toLowerCase() == 'span'
-            ) {
-                remove_keep_children = true;
-            }
+        // spans with no attributes - just remove them..
+        if ((!node.attributes || !node.attributes.length) && lcname == 'span') 
+            remove_keep_children = true;
         }
         
         // remove <a name=....> as rendering on yahoo mailer is borked with this.