Changeset 7549
- Timestamp:
- 07/06/12 17:40:12 (11 months ago)
- File:
-
- 1 edited
-
CKEditor/trunk/_source/plugins/list/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/_source/plugins/list/plugin.js
r7548 r7549 836 836 } 837 837 838 // Remove any remaining empty path blocks .838 // Remove any remaining empty path blocks at next line after merging. 839 839 while ( nextCursor.checkStartOfBlock() && 840 840 nextCursor.checkEndOfBlock() ) 841 841 { 842 842 nextPath = new CKEDITOR.dom.elementPath( nextCursor.startContainer ); 843 var nextBlock = nextPath.block; 843 var nextBlock = nextPath.block, parent; 844 845 // Check if also to remove empty list. 846 if ( nextBlock.is( 'li' ) ) 847 { 848 parent = nextBlock.getParent(); 849 if ( nextBlock.equals( parent.getLast( nonEmpty ) ) 850 && nextBlock.equals( parent.getFirst( nonEmpty ) ) ) 851 nextBlock = parent; 852 } 844 853 845 854 nextCursor.moveToPosition( nextBlock, CKEDITOR.POSITION_BEFORE_START );
Note: See TracChangeset
for help on using the changeset viewer.
