TinyMCE icon indicating copy to clipboard operation
TinyMCE copied to clipboard

nested list

Open goldsky opened this issue 13 years ago • 4 comments

I tried to fix the nested list on TinyMCE. Currently it does this:

        <ul>
            <li>list 1</li>
            <ul>
                <li>Nested list 1</li>
            </ul>
        </ul>

Which is supposed to be like this:

        <ul>
            <li>list 1
                <ul>
                    <li>Nested list 1</li>
                </ul>
            </li>
        </ul>

I found the it can be fixed by setting apply_source_formatting : false (http://stackoverflow.com/questions/6096506/problem-with-tinymce-and-list-items), but there is no setting for this.

Adding this to the class's property also does not work.

goldsky avatar Mar 11 '12 17:03 goldsky

I can confirm this....

DESIGNfromWITHIN avatar Jul 17 '12 19:07 DESIGNfromWITHIN

Just found this problem and found a solution, simply include the 'lists' plugin when you initialise TinyMCE

rmorse avatar Nov 09 '12 18:11 rmorse

@rmorse Could you explain a bit more how to fix it? I can not find any Lists plugin anywhere...

DESIGNfromWITHIN avatar Nov 12 '12 08:11 DESIGNfromWITHIN

@DESIGNfromWITHIN - the plugin itself is already included in the default download of tinyMCE so simply include it when initialising! ie

    tinyMCE.init({
        ...
        plugins : "paste,lists",
        ...
    });

rmorse avatar Nov 14 '12 14:11 rmorse