Topics

moderated Wiki image align right not being saved #bug


jay@...
 

When editing a wiki page I am able to highlight an image and choose "align right". The editor shows the image aligned right and the "source code" reveals the CSS style of "float:right" - which is what I wanted. 

However, when the page is saved the style is not retained and the image returns back to the left-hand-side with no float style attached.


Bruce Bowman
 

On Tue, Jun 2, 2020 at 04:31 PM, <jay@...> wrote:
When editing a wiki page I am able to highlight an image and choose "align right". The editor shows the image aligned right and the "source code" reveals the CSS style of "float:right" - which is what I wanted. 

However, when the page is saved the style is not retained and the image returns back to the left-hand-side with no float style attached.
Jay -- Many inline styles like this are lost upon save.

Groups.io uses the bootstrap CSS library and you can use those class definitions in your own wiki pages. https://getbootstrap.com/

Failing that, the deprecated construct <img src="myimg.jpg" align="right"> is saved just fine and still works for most (probably all) browsers.

Regards,
Bruce


jay@...
 

Thanks, Bruce.

The #bug comes from the editor explicitly adding those inline styles when highlighting an image and clicking right align - it even renders it correctly in the editor - with no manual code by me only to have it disappear when clicking Save. Why would the editor create styles that the site cannot support? It supported it in the preview just fine.