From 0f0774d7fe6b1f6bb2e34cb961bb516159ac3a3f Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 7 Jan 2022 15:24:38 +0800 Subject: [PATCH] Roo/htmleditor/BlockFigure.js --- Roo/htmleditor/BlockFigure.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roo/htmleditor/BlockFigure.js b/Roo/htmleditor/BlockFigure.js index a8fe4e267d..b8c6d77645 100644 --- a/Roo/htmleditor/BlockFigure.js +++ b/Roo/htmleditor/BlockFigure.js @@ -205,7 +205,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { tag : 'img', contenteditable : 'false', src : this.image_src, - alt : d.innerText.replace(/\n/g, " "), // removeHTML.. + alt : d.innerText.replace(/\n/g, " ").replace(/\s+/g, ' ').trim(), // removeHTML and reduce spaces.. style: { width : 'auto', 'max-width': '100%', -- 2.39.2