more styling
[roojs1] / Roo / htmleditor / FilterSpan.js
1 /**
2  * @class Roo.htmleditor.FilterSpan
3  * filter span's with no attributes out..
4  * @constructor
5  * Run a new Span Filter
6  * @param {Object} config Configuration options
7  */
8
9 Roo.htmleditor.FilterSpan = function(cfg)
10 {
11     // no need to apply config.
12     this.walk(cfg.node);
13 }
14
15 Roo.extend(Roo.htmleditor.FilterSpan, Roo.htmleditor.FilterKeepChildren,
16 {
17      
18     tag : 'SPAN',
19      
20  
21     replaceTag : function(node)
22     {
23         if (node.attributes && node.attributes.length > 0) {
24             return true; // walk if there are any.
25         }
26         Roo.htmleditor.FilterKeepChildren.prototype.replaceTag.call(this, node);
27         return false;
28      
29     }
30     
31 });