From a6b3c6e8b30103cc0bea2dcde43baf2451d310f6 Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 7 Jul 2022 10:24:53 +0800 Subject: [PATCH] Roo/HtmlEditorCore.js --- Roo/HtmlEditorCore.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index 709bef2edd..17c4d62d7b 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -614,10 +614,12 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { } if (images.length > 0) { + // if they mix thse, then it's going to be messy... + var imgs = Array.from(d.getElementsByTagName('img')); + imgs.concat(Array.from(document.getElementsByTagName('v:imagedata'))); // not sure if we need array from here. - - Roo.each(d.getElementsByTagName('img'), function(img, i) { + Roo.each(imgs, function(img, i) { img.setAttribute('src', images[i]); }); } -- 2.39.2