Ticket #4129: 4129.patch
File 4129.patch, 2.8 KB (added by , 15 years ago) |
---|
-
_source/plugins/list/plugin.js
402 402 ranges[ 0 ].selectNodeContents( paragraph ); 403 403 selection.selectRanges( ranges ); 404 404 } 405 } 405 // Maybe a single range there enclosing the whole list, 406 // turn on the list state manually(#4129). 407 else 408 { 409 var range = ranges.length == 1 && ranges[ 0 ], 410 enclosedNode = range && range.getEnclosedNode(); 411 if ( enclosedNode && enclosedNode.is 412 && this.type == enclosedNode.getName() ) 413 { 414 setState.call( this, editor, CKEDITOR.TRISTATE_ON ); 415 } 416 } 417 } 406 418 407 419 var bookmarks = selection.createBookmarks( true ); 408 420 -
_source/core/dom/range.js
1610 1610 return false; 1611 1611 }, 1612 1612 1613 /** 1614 * Get the single node enclosed within the range if there's one. 1615 */ 1616 getEnclosedNode : function() 1617 { 1618 var walkerRange = this.clone(), 1619 walker = new CKEDITOR.dom.walker( walkerRange ), 1620 isNotBookmarks = CKEDITOR.dom.walker.bookmark( true ), 1621 isNotWhitespaces = CKEDITOR.dom.walker.whitespaces( true ), 1622 evaluator = function( node ) 1623 { 1624 return isNotWhitespaces( node ) && isNotBookmarks( node ); 1625 }; 1626 walkerRange.evaluator = evaluator; 1627 var node = walker.next(); 1628 walker.reset(); 1629 var previous = walker.previous(); 1630 return previous.equals( node ) ? node : null; 1631 }, 1632 1613 1633 getTouchedStartNode : function() 1614 1634 { 1615 1635 var container = this.startContainer ; -
_source/core/dom/walker.js
304 304 lastBackward : function() 305 305 { 306 306 return iterateToLast.call( this, true ); 307 }, 308 309 reset : function() 310 { 311 delete this.current; 312 this._ = {}; 307 313 } 308 314 309 315 } -
CHANGES.html
219 219 <li><a href="http://dev.fckeditor.net/ticket/4145">#4145</a> : Fixed the on demand 220 220 ("basic") loading model of the editor.</li> 221 221 <li><a href="http://dev.fckeditor.net/ticket/4139">#4139</a> : Fixed list plugin regression of [3903].</li> 222 <li><a href="http://dev.fckeditor.net/ticket/4129">#4129</a> : Fixed unable to remove single list wihtin document with Ctrl-A.</li> 222 223 </ul> 223 224 <h3> 224 225 CKEditor 3.0 RC</h3>