Ticket #3374: 3374_2.patch
| File 3374_2.patch, 789 bytes (added by , 17 years ago) |
|---|
-
_source/plugins/indent/plugin.js
235 235 var bookmarks = selection.createBookmarks( true ), 236 236 nearestListBlock = range.getCommonAncestor(); 237 237 238 while ( !( nearestListBlock.type == CKEDITOR.NODE_ELEMENT && 239 listNodeNames[ nearestListBlock.getName() ] ) ) 238 while ( nearestListBlock ) 239 { 240 if ( nearestListBlock.type == CKEDITOR.NODE_ELEMENT && listNodeNames[ nearestListBlock.getName() ] ) 241 break; 240 242 nearestListBlock = nearestListBlock.getParent(); 243 } 241 244 242 245 if ( nearestListBlock ) 243 246 indentList.call( this, editor, range, nearestListBlock );
