From: Alan Knowles Date: Wed, 9 Mar 2022 06:49:14 +0000 (+0800) Subject: modify horizontal padding on image X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=595b5503d3c2cb984c6b2226fdeb97bb461dbf54 modify horizontal padding on image --- 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.. },