enonic / app-contentstudio-old

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

Apply styles to figure element based on settings in the toolbar #452

Closed alansemenov closed 5 years ago

alansemenov commented 6 years ago

Controls in the Image dialog's toolbar - alignment buttons, Style dropdown, "Custom width" checkbox, relative width resizer - will all apply their own style settings to the figure element. There will always be at least two styles applied: one of the alignment styles and one of the width styles. Selecting custom width + resizer will additionally apply inline styling (which will override auto width).

This will result in visual change of the image styling inside the modal dialog's preview, via plugged-in predefined CSS stylesheet.

Once the changes in the modal dialog are applied, the same styling must be applied to the figure element inside the HTML editor. Again, styling will visually change due to CSS file.