Ticket #6861: 6861.patch

File 6861.patch, 850 bytes (added by Garry Yao, 13 years ago)
  • _source/plugins/list/plugin.js

     
    102102                                }
    103103                                else if ( item.indent == Math.max( indentLevel, 0 ) + 1 )
    104104                                {
    105                                         var listData = CKEDITOR.plugins.list.arrayToList( listArray, null, currentIndex, paragraphMode );
     105                                        // Maintain list root direction (#6861).
     106                                        var rootNodeDir = rootNode.getDirection( 1 ),
     107                                                listData = CKEDITOR.plugins.list.arrayToList( listArray, null, currentIndex, paragraphMode,
     108                                                currentListItem.getDirection( 1 ) != rootNodeDir ? rootNodeDir: null );
    106109
    107110                                        // If the next block is an <li> with another list tree as the first
    108111                                        // child, we'll need to append a filler (<br>/NBSP) or the list item
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy