fix msword paste
[roojs1] / Roo / htmleditor / FilterBlack.js
index b908561..76189ac 100644 (file)
@@ -1,13 +1,3 @@
-/**
- * Filter Clean
- *
- * Based on White / Blacklists etc...
- * 
- * 
- * usually call Roo.apply(Roo.htmleditor.FilterClean)
- *
- */
-
 /**
  * @class Roo.htmleditor.FilterBlack
  * remove blacklisted elements.
@@ -24,27 +14,10 @@ Roo.htmleditor.FilterBlack = function(cfg)
 
 Roo.extend(Roo.htmleditor.FilterBlack, Roo.htmleditor.Filter,
 {
-Roo.htmleditor.FilterBlack =  {
-    /**
-     * @cfg {array} black blacklist of elements
-     */
-    black : false, // array
-    
-    walkWith : function(node, black)
-    {
-        this.black = black;
-        this.walk(node);
-    },
-    
-      
-    walk : function (node)
-    {
-       Roo.htmleditor.Filter.walk.call(this, node, this.black);
-     
-    },
-    
-    replace : function(n)
+    tag : true, // all elements.
+   
+    replaceTag : function(n)
     {
         n.parentNode.removeChild(n);
     }
-};
+});