From d2e6d9c82eac52eccd72c73cd37435eec71550f8 Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 12 Oct 2021 10:59:40 +0800 Subject: [PATCH] Roo/HtmlEditorCore.js --- Roo/HtmlEditorCore.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index 98f6c8b3cc..c954a5cd54 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -541,6 +541,10 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { var d = (new DOMParser().parseFromString(html, 'text/html')).body; + Roo.each(d.getElementsByTagName('img'), function(img, i) { + img.setAttribute('src', images[i]); + }); + Roo.log(cd.getData('text/rtf')); Roo.log(cd.getData('text/richtext')); -- 2.39.2