[CKEditor Dev] #6281: List items not wrapped in UL/OL render incorrectly

276 views
Skip to first unread message

CKEditor

unread,
Sep 10, 2010, 8:42:24 AM9/10/10
to ckeditor...@googlegroups.com
#6281: List items not wrapped in UL/OL render incorrectly
---------------------------------+------------------------------------------
Reporter: ladybug_3777 | Type: Bug
Status: new | Priority: Normal
Component: Core : Lists | Version: 3.3.2
Keywords: UL LI OL List lists |
---------------------------------+------------------------------------------
In the old fckeditor I could enter the following (incorrect) HTML code in
source mode:

<li>item one</li>
[[BR]]
<li>item two</li>


When I toggled / switched back to wysiwyg mode fckeditor would realize I
was trying to make a list and automatically append the proper UL tag
around my list items like so:


<ul>[[BR]]
<li>item one</li>[[BR]]
<li>item two</li>[[BR]]
</ul>[[BR]]


I've noticed that ckeditor 3.3.2 does not automatically detect that I'm
trying to create a list and not only does it not add in the ul tags but
instead creates new lines (more and more of them) every time I toggle from
source to wysiwyg like so:
First toggle:

<p>&nbsp;</p>
<p>
<li>
item one</li>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>
<li>
item two</li>
</p>


Second toggle:

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>
<li>
item one</li>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>
<li>
item two</li>
</p>
<p>&nbsp;</p>

Making the problem worse each time.

The problem is more pronounced if I forget to put in wrapping ul/ol AND
also forget closing li tags. So for example if I put this into source:


<li>item one[[BR]]
<li>item two[[BR]]


When I toggle out and back into source I now lose my first item completely
and see this in source:


Code: Select all
<p>&nbsp;</p>
<p>
<li>
two</li>
</p>


I realize users shouldn't be putting in bad list HTML code, but it seems
unfortunate that the old version of the editor was able to handle this
situation and the new editor makes a mess of it


I've posted about this issue in the forums here:
http://cksource.com/forums/viewtopic.php?f=11&t=20104

--
Ticket URL: <http://dev.ckeditor.com/ticket/6281>
CKEditor <http://ckeditor.com/>
The text editor for Internet

CKEditor

unread,
Sep 10, 2010, 8:43:32 AM9/10/10
to ckeditor...@googlegroups.com
#6281: List items not wrapped in UL/OL render incorrectly
---------------------------------+------------------------------------------
Reporter: ladybug_3777 | Type: Bug
Status: new | Priority: Normal
Component: Core : Lists | Version: 3.3.2
Keywords: UL LI OL List lists |
---------------------------------+------------------------------------------
Changes (by ladybug_3777):

* cc: ladybug_3777@… (added)


--
Ticket URL: <http://dev.ckeditor.com/ticket/6281#comment:1>

CKEditor

unread,
Sep 13, 2010, 4:53:57 AM9/13/10
to ckeditor...@googlegroups.com
#6281: List items not wrapped in UL/OL render incorrectly
--------------------------+-------------------------------------------------
Reporter: ladybug_3777 | Type: Bug
Status: confirmed | Priority: Normal
Milestone: | Component: Core : Lists
Version: 3.3.2 | Keywords:
--------------------------+-------------------------------------------------
Changes (by krst):

* keywords: UL LI OL List lists =>
* status: new => confirmed


Old description:

New description:


In the old fckeditor I could enter the following (incorrect) HTML code in
source mode:
{{{
<li>item one</li>

<li>item two</li>
}}}

When I toggled / switched back to wysiwyg mode fckeditor would realize I
was trying to make a list and automatically append the proper UL tag
around my list items like so:
{{{
<ul>

<li>item one</li>
<li>item two</li>
</ul>

<li>item two

}}}

When I toggle out and back into source I now lose my first item completely
and see this in source:

Code: Select all
{{{
<p>&nbsp;</p>
<p>
<li>
two</li>
</p>
}}}

I realize users shouldn't be putting in bad list HTML code, but it seems
unfortunate that the old version of the editor was able to handle this
situation and the new editor makes a mess of it


I've posted about this issue in the forums here:
http://cksource.com/forums/viewtopic.php?f=11&t=20104

--

Comment:

Confirmed in 3.4 and 3.4.1

--
Ticket URL: <http://dev.ckeditor.com/ticket/6281#comment:2>

CKEditor

unread,
Sep 13, 2010, 2:19:22 PM9/13/10
to ckeditor...@googlegroups.com
#6281: List items not wrapped in UL/OL render incorrectly
--------------------------+-------------------------------------------------
Reporter: ladybug_3777 | Type: Bug
Status: confirmed | Priority: Normal
Milestone: | Component: Core : Lists
Version: 3.3.2 | Keywords:
--------------------------+-------------------------------------------------
Changes (by rirwin):

* cc: rirwin@… (added)


--
Ticket URL: <http://dev.ckeditor.com/ticket/6281#comment:3>

Reply all
Reply to author
Forward
0 new messages