silverstripe / silverstripe-cms

Silverstripe CMS - this is a module for Silverstripe Framework rather than a standalone app. Use https://github.com/silverstripe/silverstripe-installer/ to set this up.
http://silverstripe.org/
BSD 3-Clause "New" or "Revised" License
516 stars 333 forks source link

Images alignment not saved #2335

Closed amolswnz closed 5 years ago

amolswnz commented 5 years ago

Issue found in Elemental elements - Content Block

Images can be aligned left/right or center, in the editor. It displays but after the content is Save/Publish the style tag (style='float: right' or 'float: center') is removed from the <img> tag This is not seen for regular text <p>

"silverstripe/cms": "^4.0"
"dnadesign/silverstripe-elemental-userforms": "^1.0@dev",
"dnadesign/silverstripe-elemental": "^2.1.0",
"silverstripe/elemental-blocks": "^1.0@dev",
robbieaverill commented 5 years ago

Hi @amolswnz, which version of silverstripe/framework are you using?

This looks like a duplicate of https://github.com/silverstripe/silverstripe-cms/issues/2202, which was fixed recently and is probably in the latest 4.2.x release.

Could you please check and confirm?

I'll close for now as a duplicate.