From 595b5503d3c2cb984c6b2226fdeb97bb461dbf54 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 9 Mar 2022 14:49:14 +0800 Subject: [PATCH] modify horizontal padding on image --- 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 16b441c8e1..8bc7f8efb8 100644 --- a/Roo/htmleditor/BlockFigure.js +++ b/Roo/htmleditor/BlockFigure.js @@ -327,7 +327,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { maxWidth : this.align == 'center' ? '100% !important' : (this.width + ' !important'), width : this.align == 'center' ? '100%' : this.width, margin: '0px', - padding: '10px 0', + padding: this.align == 'center' ? '10px 0' : '0', textAlign : this.align // seems to work for email.. }, -- 2.39.2