2 * @class Roo.htmleditor.FilterEmpty
3 * filter empty elements (normally <B> on paste)
5 * Run a new Empty Filter
6 * @param {Object} config Configuration options
9 Roo.htmleditor.FilterEmpty = function(cfg)
11 // no need to apply config.
15 Roo.extend(Roo.htmleditor.FilterSpan, Roo.htmleditor.FilterBlack,
21 replaceTag : function(node)
23 if (node.innerHTML.trim() != '') {
26 if (node.attributes && node.attributes.length > 0) {
27 return true; // walk if there are any.
29 Roo.htmleditor.FilterBlack.prototype.replaceTag.call(this, node);