tinyMCE and nested lists

Permalink
Hi,

I was just editting a page and added a unordered list with some nested lists. Because I wanted to do some jQuery stuff (clicking on the LI should show the nested UL) I ran into a problem with tinyMCE and some invalid markup (is it?).

Wat I want to create is like this:

<ul>
    <li>Test 1
        <ul>
            <li>Test 1.1</li>
        </ul>
    </li>
    <li>Test 2</li>
</ul>


The result tinyMCE gives me is like this:

<ul>
    <li>Test 1</li>
    <ul>
        <li>Test 1.1</li>
    </ul>
    <li>Test 2</li>
</ul>

Is this some setting of tinyMCE that will correct the markup? Or is the generated by tinyMCE the desired one?

Snef

View Replies:
JohntheFish replied on at Permalink Reply
JohntheFish
Personally I don't trust the mark up that tinymce generates. It seems to have a mind of its own. I can tolerate it when all I am concerned with is screen appearance, but its a disaster in waiting if any JavaScript depends on an exact and consistent mark up structure.

For anything more than trivial I would go for the security of knowing exactly what you are getting with an html block.
Remo replied on at Permalink Reply
Remo
Old topic but it still seems to be valid.

According to this page:
http://www.tinymce.com/develop/bugtracker_view.php?id=4692...

you can fix that if you enable the "list" plugin. Luckily we can specify a custom configuration in concrete5 which should make this an easy task.