Fix #7295 - a name tags in word docuemnts
[roojs1] / Roo / htmleditor / Filter.js
index 411cd3c..6d5cf8f 100644 (file)
@@ -62,5 +62,20 @@ Roo.htmleditor.Filter.prototype = {
             
         }, this);
         
+    },
+    
+    
+    removeNodeKeepChildren : function( node)
+    {
+    
+        ar = Array.from(node.childNodes);
+        for (var i = 0; i < ar.length; i++) {
+         
+            node.removeChild(ar[i]);
+            // what if we need to walk these???
+            node.parentNode.insertBefore(ar[i], node);
+           
+        }
+        node.parentNode.removeChild(node);
     }
 };
\ No newline at end of file