#2240: Editor doesn't support XHTML spec for inclusion of <div> <p> etc within a
<li> list item
---------------------------+------------------------------------------------
Reporter: mike.ewins | Owner:
Type: Bug | Status: closed
Priority: Normal | Milestone:
Component: Core : Lists | Version: FCKeditor 2.6
Resolution: wontfix | Keywords: Confirmed
---------------------------+------------------------------------------------
Changes (by fredck):
* status: new => closed
* resolution: => wontfix
Comment:
There is no way for us to support all those combinations. Let's analyze
each one, getting the reported samples:
'''Nested list without unnumbered para (from Word)'''
This situation looks good. Word sent a properly nested list.
'''Nested list with unumbered para inbetween (from Word)'''
The input HTML from word is clearly invalid. Also, there is no relation
between the files <ol>, the <div> the and <ol> after it. Word does it
hacks to visually combine them, but there is no way for us to understand
that relation.
'''Nested list with unumbered para inbetween (manually edited to achieve
valid XHTML)'''
This example is valid, but I don't see any unumbered para inbetween. It
looks like the first example.
----
Currently, it is not possible to create new paragraphs when editing inside
a list item. We have to give a standard behavior for the enter key, and we
understood that usually people want new items when hitting enter, instead
of new paragraphs. Actually, creating several paragraphs in a single list
item is quite rare.
In any case, it is possible to achieve the desired results with FCKeditor.
It is not an obvious procedure, but can be anyway helpful in such cases.
I've created the following HTML with the editor:
{{{
<ol>
<li>
<p>Item 1 - Para 1</p>
<p>Item 1 - Para 2</p>
<ol type="a">
<li>
<p>Sub Item 1.a</p>
</li>
</ol>
</li>
<li>
<p>Item 2</p>
</li>
</ol>
}}}
The following were the steps to achieve this:
1. In a blank paragraph, type "Item 1 - Para 1"
2. Transformed it in a list with the Numbered List button.
3. In the Format combo, select "Normal" to transform the list contents in
a paragraph.
4. Hit ENTER. It creates new item.
5. Typed "Item 1 - Para 2".
6. Placed the caret at the start of the newly created item and hit
BACKSPACE. It will join this item with the previous one.
7. In the Format combo, select "Normal" to transform the joined text in a
paragraph.
8. At the end of "Item 1 - Para 2" hit ENTER. A new item is created.
9. Type "Sub Item 1.a".
10. Indent the list item.
11. For the sake of correctness, right click on this item and select the
"Numbered List Properties". For "Type" select "Lowercase Letters".
12. In the Format combo, select "Normal" to move the 1.a contents into a
paragraph.
13. Hit ENTER at the end of "Sub Item 1.a". Sub item "b" is created.
14. Outdent the sub item "b". It get transformed on item "2".
15. Type "Item 2".
16. In the Format combo, select "Normal" to move the item 2 contents into
a paragraph.
While the above description seems long, it is just the normal procedure to
create such list. The only tricky thing here is point 6, which is
definitely acceptable and easy to achieve.
--
Ticket URL: <http://dev.fckeditor.net/ticket/2240#comment:2>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac