fix msword paste
[roojs1] / Roo / htmleditor / FilterBlack.js
1 /**
2  * @class Roo.htmleditor.FilterBlack
3  * remove blacklisted elements.
4  * @constructor
5  * Run a new Blacklisted Filter
6  * @param {Object} config Configuration options
7  */
8
9 Roo.htmleditor.FilterBlack = function(cfg)
10 {
11     Roo.apply(this, cfg);
12     this.walk(cfg.node);
13 }
14
15 Roo.extend(Roo.htmleditor.FilterBlack, Roo.htmleditor.Filter,
16 {
17     tag : true, // all elements.
18    
19     replaceTag : function(n)
20     {
21         n.parentNode.removeChild(n);
22     }
23 });