Online Editor - Center embeded image in editor

Author Message

STEVO +

Monday 03 August 2009 6:14:24 am

Only me again!

I've noticed that images with view="embed" aren't shown as centered in the editor if the align center button is used.

I've hacked a solution (for firefox 3.5 at least) with these css3 rules.

*[view="embed"]{display:block;}
img[view="embed"][align="middle"]{margin-left: auto; margin-right:auto;}

This will probably do for my case but I think it deserves looking at.

I think that any content (even images) with view="embed" should have display:block; in the editor, otherwise their preview behaves like embed-inline.

They centering is a bit trickier. At the moment, the js adds align="middle" to all image tags, i think it should only use "middle" for embed-inline. however, using align="center" won't help the preview either.

Any comments anyone?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.