Ticket #3887: 3887.patch
File 3887.patch, 2.1 KB (added by , 14 years ago) |
---|
-
_source/plugins/domiterator/plugin.js
61 61 walker.evaluator = ignoreBookmarkTextEvaluator; 62 62 var lastNode = walker.previous(); 63 63 this._.lastNode = lastNode.getNextSourceNode( true ); 64 65 if ( this._.lastNode.type == CKEDITOR.NODE_TEXT && this._.lastNode.getLength() == 0 ) 66 { 67 // Special case for #3887: 68 // We may have an empty text node at the end of block due to [3770]. 69 // If that node is the lastNode, it would cause our logic to leak to the 70 // next block. 71 var testRange = new CKEDITOR.dom.range( range.document ); 72 testRange.moveToPosition( this._.lastNode, CKEDITOR.POSITION_AFTER_END ); 73 if ( testRange.checkEndOfBlock() ) 74 { 75 var path = new CKEDITOR.dom.elementPath( testRange.endContainer ); 76 var block = path.block || path.blockLimit; 77 this._.lastNode = block.getNextSourceNode( true ); 78 } 79 } 80 64 81 // Probably the document end is reached, we need a marker node. 65 82 if ( !this._.lastNode ) 66 83 { 67 84 this._.lastNode = range.document.createText( '' ); 68 85 this._.lastNode.insertAfter( lastNode ); 69 86 } 87 70 88 // Let's reuse this variable. 71 89 range = null; 72 90 } -
CHANGES.html
103 103 <li><a href="http://dev.fckeditor.net/ticket/3868">#3868</a> : [chrome] SCAYT toolbar options was in reversed order.</li> 104 104 <li><a href="http://dev.fckeditor.net/ticket/3875">#3875</a> : Fixed an issue in Safari where 105 105 table row/column/cell menus are not useable when table cells are selected.</li> 106 <li><a href="http://dev.fckeditor.net/ticket/3887">#3887</a> : Fixed an issue in which the create 107 list command may leak outside of a selected table cell and into the rest of document.</li> 106 108 </ul> 107 109 <h3> 108 110 CKEditor 3.0 RC</h3>