From e50b708550a078f08c444d6eeec0e2e293332fb6 Mon Sep 17 00:00:00 2001 From: leon Date: Wed, 14 Feb 2024 15:37:40 +0800 Subject: [PATCH] Roo/HtmlEditorCore.js --- Roo/HtmlEditorCore.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 }); } -- 2.39.2