Roo/HtmlEditorCore.js
authorAlan <alan@roojs.com>
Thu, 7 Jul 2022 02:24:53 +0000 (10:24 +0800)
committerAlan <alan@roojs.com>
Thu, 7 Jul 2022 02:24:53 +0000 (10:24 +0800)
Roo/HtmlEditorCore.js

index 709bef2..17c4d62 100644 (file)
@@ -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]);
             });
         }