Changeset 1082
- Timestamp:
- 2007-11-15 07:36:13 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/classes/fckeditingarea.js
r933 r1082 311 311 var range = this.Document.selection.createRange() ; 312 312 313 // Only apply the fix when in a block and the block is empty.313 // Only apply the fix when in a block, the block is empty, and we're not in a list item. 314 314 var parentNode = range.parentElement() ; 315 315 316 if ( ! ( parentNode.childNodes.length == 0 && ( 317 FCKListsLib.BlockElements[parentNode.nodeName.toLowerCase()] || 318 FCKListsLib.NonEmptyBlockElements[parentNode.nodeName.toLowerCase()] ) ) ) 316 var parentTag = parentNode.nodeName.toLowerCase() ; 317 if ( ! ( parentNode.childNodes.length == 0 && parentTag != 'li' && ( 318 FCKListsLib.BlockElements[parentTag] || 319 FCKListsLib.NonEmptyBlockElements[parentTag] ) ) ) 319 320 return ; 320 321