Roo/HtmlEditorCore.js
authorAlan <alan@roojs.com>
Tue, 12 Oct 2021 02:59:40 +0000 (10:59 +0800)
committerAlan <alan@roojs.com>
Tue, 12 Oct 2021 02:59:40 +0000 (10:59 +0800)
Roo/HtmlEditorCore.js

index 98f6c8b..c954a5c 100644 (file)
@@ -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'));