Forums / Setup & design / Bug in Online Editor for EZ 3.5

Bug in Online Editor for EZ 3.5

Author Message

Tore Skobba

Wednesday 23 March 2005 12:58:27 am

Hi

I think I have found an bug in the online editor for EZ3.5 (Ver. 2.0). When I add an list, either an bullet or nummered list all the list elements gets wrapped within an <p> tag..

I.e
<ul>
<li><p>List item 1</p></li>
</ul>

Should it be like this?

Happy easter all.

Wenyue Yu

Wednesday 23 March 2005 1:23:07 am

Hi,

Yes, it will be like this. The reason is eZ publish supports nested list from 3.5 and <paragraph> tag will be added into the database ( but it will not show in the textarea ).

Best regards,
wenyue

Tore Skobba

Wednesday 23 March 2005 1:31:32 am

Hmm but it is showing in the front end.. This can cause page desing malfunctions as people often use the following styles to set their font-size.

p,ul,ol
{
font-size: 80%;
}

If you now have an p within an ul tag then its list points get extra small (at least in Mozilla). Bringing ol out of the style (i.e. p,ul) while leaving p there brings the text to correct size. But the list number is part of ol and gets an extra large size. See here for example: http://www.grunderskolen.no, note the large list numbers in the middle of the page. However, this could probably be fixed with some adjustments to the styles. Guess this maybee is more of an CSS discussion than an Online Editor discussion.

Cheers
Tore

Jonathan Dillon-Hayes

Monday 28 March 2005 2:46:14 am

Yea, it's not really an OE thing anymore, but it's a good question!

There is an easy way to get around this...

Just put

li p {
font-size: x-small;
}

This effectively will override the case.

However, the best technique is to sidestep the issue completely. Check out this link from ALA:

http://www.alistapart.com/articles/relafont/

Set a default font size that's fixed, and override it with relative %s.

Also, for your fun and profit a good link:
http://hyperdisc.unitec.ac.nz/resources/resources/CSS%20-%20Relative%20Sizes%20of%20Text.htm

I'm not able to pull up your page, so I can't test this, but I was just thinking about what you were saying, and it would seem to me that either case would get you around it...

However, I agree with you that including the p tag isn't necessary. I think it's an attribute of the underlying library eZ used to build the OE... but I'd be interested to know...

Jonathan

---------
FireBright provides advanced eZ deployment with root access
http://www.FireBright.com/

Craig Hirsch

Thursday 31 March 2005 12:52:29 pm

Hi, I just ran into this exact problem. While this can be fixed with extra CSS rules, the extra P tags are very counterintuitive, since they can't be seen on the admin side. Perhaps some text should be inserted into the Online Editor help window to explain what's going on as of 3.5?

--
chirsch{AT}gmail{d.t}com

Bruce Morrison

Thursday 31 March 2005 3:41:27 pm

I've seen this as well. A bug was logged a while back. While there is a reply from eZ there doesn't appear to be a resolution.

http://ez.no/community/bugs/paragraph_tags_included_in_unordered_list

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish