// clean up silly Windows -- stuff?
return;
}
+ if (node.nodeName == "#comment") {
+ node.parentNode.removeChild(node);
+ // clean up silly Windows -- stuff?
+ return;
+ }
+
if (Roo.form.HtmlEditor.black.indexOf(node.tagName.toLowerCase()) > -1) {
// remove node.
node.parentNode.removeChild(node);
node.removeAttribute(n);
return;
}
+
+
var parts = v.split(/;/);
Roo.each(parts, function(p) {
p = p.replace(/\s+/g,'');
if (a.name == 'style') {
cleanStyle(a.name,a.value);
}
-
+ /// clean up MS crap..
+ if (a.name == 'class') {
+ if (a.value.match(/^Mso/)) {
+ node.className = '';
+ }
+ }
// style cleanup!?
// class cleanup?
'caption', 'col', 'colgroup', 'tbody', 'td', 'tfoot', 'th',
'thead', 'tr',
- 'dir', 'menu', 'ol', 'ul', 'dl'
+ 'dir', 'menu', 'ol', 'ul', 'dl',
+ 'embed', 'object'
];
Roo.form.HtmlEditor.black = [
- 'embed', 'object', // eventually enable for flash?
+ // 'embed', 'object', // enable - backend responsiblity to clean thiese
'applet', //
'base', 'basefont', 'bgsound', 'blink', 'body',
'frame', 'frameset', 'head', 'html', 'ilayer',
- 'iframe', 'layer', 'link', 'meta', 'object',
-
+ 'iframe', 'layer', 'link', 'meta', 'object',
'script', 'style' ,'title', 'xml' // clean later..
];
Roo.form.HtmlEditor.clean = [