splittingred / TinyMCE

TinyMCE integration for MODx Revolution.
http://svn.modxcms.com/docs/display/ADDON/TinyMCE
35 stars 19 forks source link

nested list #82

Open goldsky opened 12 years ago

goldsky commented 12 years ago

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.

DESIGNfromWITHIN commented 12 years ago

I can confirm this....

rmorse commented 12 years ago

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

DESIGNfromWITHIN commented 12 years ago

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

rmorse commented 12 years ago

@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",
        ...
    });