From: Alan Date: Thu, 7 Jul 2022 02:21:31 +0000 (+0800) Subject: Roo/HtmlEditorCore.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=42da60fabd22c44d2783cf18eaa468f96f765fbe Roo/HtmlEditorCore.js --- diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index 1da95fe14b..709bef2edd 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -595,7 +595,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { .map(function(g) { return g.toDataURL(); }) .filter(function(g) { return g != 'about:blank'; }); - + Roo.log(html); html = this.cleanWordChars(html); var d = (new DOMParser().parseFromString(html, 'text/html')).body; @@ -614,6 +614,9 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { } if (images.length > 0) { + + + Roo.each(d.getElementsByTagName('img'), function(img, i) { img.setAttribute('src', images[i]); });