We have 4 predefined alignment styles (see https://github.com/enonic/xp/issues/6618) defining how an image will be styled under different alignments (when clicking alignment buttons in the HTML Area toolbar).
As of now when changing alignment, we sometimes apply CSS class name but mostly inline styling. This must be removed - instead, only one of the 4 alignment styles must be applied to the <figure> element. CSS for each specific alignment style should already be defined in built-in CSS file (https://github.com/enonic/xp/issues/6618).
We have 4 predefined alignment styles (see https://github.com/enonic/xp/issues/6618) defining how an image will be styled under different alignments (when clicking alignment buttons in the HTML Area toolbar). As of now when changing alignment, we sometimes apply CSS class name but mostly inline styling. This must be removed - instead, only one of the 4 alignment styles must be applied to the
<figure>
element. CSS for each specific alignment style should already be defined in built-in CSS file (https://github.com/enonic/xp/issues/6618).