projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Roo/HtmlEditorCore.js
[roojs1]
/
roojs-debug.js
diff --git
a/roojs-debug.js
b/roojs-debug.js
index
b42fb8a
..
04d0a58
100644
(file)
--- a/
roojs-debug.js
+++ b/
roojs-debug.js
@@
-52371,7
+52371,16
@@
Roo.extend(Roo.HtmlEditorCore, Roo.Component, {
if (this.enableBlocks) {
if (this.enableBlocks) {
- Roo.htmleditor.Block.initAll(bd);
+ Array.from(bd.getElementsByTagName('img')).forEach(function(img) {
+ var fig = img.closest('figure');
+ if (fig) {
+ var bf = new Roo.htmleditor.BlockFigure({
+ node : fig
+ });
+ bf.updateElement();
+ }
+
+ });
new Roo.htmleditor.FilterBlock({ node : div });
}
new Roo.htmleditor.FilterBlock({ node : div });
}