projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9213973
)
Roo/HtmlEditorCore.js
author
Alan
<alan@roojs.com>
Thu, 7 Jul 2022 02:21:31 +0000
(10:21 +0800)
committer
Alan
<alan@roojs.com>
Thu, 7 Jul 2022 02:21:31 +0000
(10:21 +0800)
Roo/HtmlEditorCore.js
patch
|
blob
|
history
diff --git
a/Roo/HtmlEditorCore.js
b/Roo/HtmlEditorCore.js
index
1da95fe
..
709bef2
100644
(file)
--- 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]);
});