return;
}
+ if (Roo.form.HtmlEditor.remove.indexOf(node.tagName.toLowerCase()) > -1) {
+ this.cleanUpChildren(node);
+ // inserts everything just before this node...
+ while (node.childNodes.length) {
+ var cn = node.childNodes[0];
+ node.removeChild(cn);
+ node.parent.insertBefore(cn, node);
+ }
+ node.parentNode.removeChild(node);
+ return;
+ }
+
if (!node.attributes || !node.attributes.length) {
this.cleanUpChildren(node);
return;
'script', 'style' ,'title', 'xml' // clean later..
];
Roo.form.HtmlEditor.clean = [
- 'script', 'style', 'title', 'xml', 'font'
+ 'script', 'style', 'title', 'xml'
+];
+Roo.form.HtmlEditor.remove = [
+ 'font'
];
-
// attributes..
Roo.form.HtmlEditor.ablack = [