From: leon Date: Wed, 14 Feb 2024 07:37:40 +0000 (+0800) Subject: Roo/HtmlEditorCore.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=e50b708550a078f08c444d6eeec0e2e293332fb6 Roo/HtmlEditorCore.js --- diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index 0d5a926d1d..a89cdc250d 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -376,16 +376,16 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { if (this.enableBlocks) { - // 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(); - // } + 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 }); }