enonic / app-contentstudio-old

Enonic XP - Content Studio app
GNU General Public License v3.0
1 stars 1 forks source link

Change alignment icons to apply correct style to image preview #447

Closed alansemenov closed 6 years ago

alansemenov commented 6 years ago

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).