Changeset 1218 for FCKeditor/trunk
- Timestamp:
- 12/18/07 11:31:52 (5 years ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 edited
-
_whatsnew.html (modified) (1 diff)
-
editor/_source/classes/fckdomrangeiterator.js (modified) (2 diffs)
-
editor/_source/classes/fckelementpath.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/_whatsnew.html
r1211 r1218 60 60 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1643">#1643</a>] Resolved 61 61 several "strict warning" messages in Firefox when running FCKeditor.</li> 62 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1603">#1603</a>] Certain 63 specific markup was making FCKeditor entering in a loop, blocking its execution.</li> 62 64 </ul> 63 65 <p> -
FCKeditor/trunk/editor/_source/classes/fckdomrangeiterator.js
r1090 r1218 126 126 } 127 127 128 // The range must finish right before the boundary, 129 // including possibly skipped empty spaces. (#1603) 130 if ( range ) 131 range.SetEnd( currentNode, 3, true ) ; 132 128 133 closeRange = true ; 129 134 } … … 182 187 183 188 currentNode = parentNode ; 189 includeNode = true ; 184 190 isLast = ( currentNode == lastNode ) ; 185 191 continueFromSibling = true ; -
FCKeditor/trunk/editor/_source/classes/fckelementpath.js
r988 r1218 47 47 if ( FCKListsLib.PathBlockLimitElements[ sElementName ] != null ) 48 48 { 49 // DIV is considered the Block, if no block is available (#525). 50 if ( !eBlock && sElementName == 'div' ) 49 // DIV is considered the Block, if no block is available (#525) 50 // and if it doesn't contain other blocks. 51 if ( !eBlock && sElementName == 'div' && !FCKElementPath._CheckHasBlock( e ) ) 51 52 eBlock = e ; 52 53 else … … 68 69 } 69 70 71 /** 72 * Check if an element contains any block element. 73 */ 74 FCKElementPath._CheckHasBlock = function( element ) 75 { 76 var childNodes = element.childNodes ; 77 78 for ( var i = 0, count = childNodes.length ; i < count ; i++ ) 79 { 80 var child = childNodes[i] ; 81 82 if ( child.nodeType == 1 && FCKListsLib.BlockElements[ child.nodeName.toLowerCase() ] ) 83 return true ; 84 } 85 86 return false ; 87 } 70 88
Note: See TracChangeset
for help on using the changeset viewer.
