new Roo.htmleditor.FilterBlock({ node : div });
}
//?? tidy?
- var tidy = new Roo.htmleditor.TidySerializer({
- inner: true
- });
- var html = tidy.serialize(div);
+ if (this.autoClean) {
+ var tidy = new Roo.htmleditor.TidySerializer({
+ inner: true
+ });
+ var html = tidy.serialize(div);
+
+ }
if(Roo.isSafari){
if (images.length > 0) {
// replace all v:imagedata - with img.
- var ar = Array.from(d.getElementsByTagName('v:imagedata'))
+ var ar = Array.from(d.getElementsByTagName('v:imagedata'));
Roo.each(ar, function(node) {
node.parentNode.insertBefore(d.ownerDocument.createElement('img'), node );
node.parentNode.removeChild(node);
new Roo.htmleditor.FilterStyleToTag({ node : d });
new Roo.htmleditor.FilterAttributes({
node : d,
- attrib_white : ['href', 'src', 'name', 'align', 'colspan', 'rowspan', 'data-display', 'data-width'],
+ attrib_white : ['href', 'src', 'name', 'align', 'colspan', 'rowspan', 'data-display', 'data-width', 'start'],
attrib_clean : ['href', 'src' ]
});
new Roo.htmleditor.FilterBlack({ node : d, tag : this.black});