Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#7699 closed Bug (invalid)

problem with list

Reported by: Régis Houssin Owned by:
Priority: Normal Milestone:
Component: Core : Lists Version: 3.5.3
Keywords: bullet list Cc:

Description

Hi,

I have a problem with display lists (bulleted or number) I have this in the html source:

<ul>
	<li>
		test</li>
	<li>
		test</li>
	<li>
		test</li>
</ul>

This creates a line break and add a

<br />

in the code of the page

<ul>
	<li><br />
		test</li><br />
	<li><br />
		test</li><br />
	<li><br />
		test</li><br />
</ul>

why we do not do this?

<ul>
	<li>test</li>
	<li>test</li>
	<li>test</li>
</ul>

thanks for your help Régis

Attachments (2)

Capture d’écran 2011-05-04 à 09.46.12.png (16.5 KB) - added by Régis Houssin 13 years ago.
editor view
Capture d’écran 2011-05-04 à 09.46.29.png (18.2 KB) - added by Régis Houssin 13 years ago.
source view

Download all attachments as: .zip

Change History (12)

comment:1 Changed 13 years ago by Jakub Ś

Status: newpending

Unfortunately I was not able to reproduce this issue in any browser for CKEditor version 3.5.3.

Could you tell me in which browser(s) did this issue occur and what configuration settings were you using (e.g. enterMode set to BR). Have you tried to reproduce this issue in our latest demo version http://nightly.ckeditor.com/demo? I’m asking because if you are using CKEditor with some kind of framework than maybe the problem lies not in CKEditor itself but in your configuration settings. Also this issue may have already been fixed in the latest demo version.

Waiting for your comments.

comment:2 Changed 13 years ago by Régis Houssin

ok sorry, i change the view in my application, but why ckeditor add a break line in <li></li> ?

comment:3 Changed 13 years ago by Jakub Ś

What do you mean by "I change the view in my application" ?

Regarding your question - that's the whole problem I could not get the same result as you did that is why I'm asking you about some details how to reproduce this bug. Just like I have said before I need some information about: browser, OS, CKEditor configuration: default or custom and if custom than what options have you used. Also is this bug reproducible in demo version (clean CKEditor version) or only with some sort of framework what might point to mistake in application not CKEditor itself.

If I manage to reproduce this bug I will be able to tell you more.

comment:4 Changed 13 years ago by Tri

I see this happen very frequently with latest Chrome and IE9 with 3.5.3, but unfortunately I don't have exact steps to reproduce. This is definitely a real issue though.

Last edited 13 years ago by Tri (previous) (diff)

comment:5 Changed 13 years ago by Tri

Great news, at least in our case, I was able to track this down to a problem with our own display code. CKEditor was not at fault!

comment:6 Changed 13 years ago by Jakub Ś

Resolution: invalid
Status: pendingclosed

Changed 13 years ago by Régis Houssin

editor view

Changed 13 years ago by Régis Houssin

source view

comment:7 Changed 13 years ago by Régis Houssin

hi,

i add 2 attach-files in this ticket, an editor view and a source view you see line break in <li> ???

thanks

comment:8 Changed 13 years ago by a1234my

i have that prob too. using $CKEditor->replaceAll(); to replaces All the <textarea> reproduce at sample: 1) Click insert bulleted list 2) type in "this is first line" 3) hit enter ( next bullet is out ) 4) type in "this is 2 line" 5) hit enter two times ( enter + enter ) 6) click at the SOURCE button u will get

<ul>
	<li dir="ltr">
		this is the first line</li>
	<li dir="ltr">
		this is 2 line</li>
</ul>
<p>
	&nbsp;</p>


enter x2 is to exit the li tag. if u click the bulleted list again at the 3 <li>u will get

<ul>
	<li dir="ltr">
		this is the first line</li>
	<li dir="ltr">
		this is 2 line</li>
</ul>
<p dir="ltr">
	&nbsp;</p>

thank in advance

comment:9 Changed 13 years ago by Jakub Ś

This is how CKEditor formats HTML code. It can be changed by the user - at least some of the rules.

For more details please see: http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Output_Formatting.

You may find something useful in CKEditor documentation as well.

comment:10 Changed 13 years ago by Jakub Ś

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy