.map(function(g) { return g.toDataURL(); })
.filter(function(g) { return g != 'about:blank'; });
- Roo.log(html);
+ //Roo.log(html);
html = this.cleanWordChars(html);
var d = (new DOMParser().parseFromString(html, 'text/html')).body;
return false;
}
+
+
if (images.length > 0) {
+ // replace all v:imagedata - with img.
+ Roo.each(document.getElementsByTagName('v:imagedata'), function(node) {
+ node.parentNode.insertBefore(node, d.createElement('img'));
+ node.parentNode.removeChild(node);
+ });
-
- Roo.each(d.getElementsByTagName('img'), function(img, i) {
+ Roo.each(imgs, function(d.getElementsByTagName('img'), i) {
img.setAttribute('src', images[i]);
});
}