Ticket #6861: 6861_2.patch
File 6861_2.patch, 887 bytes (added by , 13 years ago) |
---|
-
_source/plugins/list/plugin.js
102 102 } 103 103 else if ( item.indent == Math.max( indentLevel, 0 ) + 1 ) 104 104 { 105 var listData = CKEDITOR.plugins.list.arrayToList( listArray, null, currentIndex, paragraphMode ); 105 // Maintain original direction (#6861). 106 var orgDir = item.element.getDirection( 1 ), 107 currDir = listArray[ currentIndex - 1 ].element.getDirection( 1 ), 108 listData = CKEDITOR.plugins.list.arrayToList( listArray, null, currentIndex, paragraphMode, 109 currDir != orgDir ? orgDir: null ); 106 110 107 111 // If the next block is an <li> with another list tree as the first 108 112 // child, we'll need to append a filler (<br>/NBSP) or the list item