Changeset 1134
- Timestamp:
- 11/28/07 18:51:11 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/classes/fckeditingarea.js
r1095 r1134 306 306 var range = this.Document.selection.createRange() ; 307 307 308 var parentNode = range.parentElement() ; 309 var parentTag = parentNode.nodeName.toLowerCase() ; 310 311 // Only apply the fix when in a block, and the block is empty. 312 if ( parentNode.childNodes.length > 0 || 313 !( FCKListsLib.BlockElements[parentTag] || 314 FCKListsLib.NonEmptyBlockElements[parentTag] ) ) 315 { 316 return ; 317 } 318 308 319 range.moveEnd( "character", 1 ) ; 309 320 range.select() ; 321 310 322 if ( range.boundingWidth > 0 ) 311 323 {
Note: See TracChangeset
for help on using the changeset viewer.
