Ticket #6728: 6728_6.patch
File 6728_6.patch, 2.7 KB (added by , 13 years ago) |
---|
-
_source/plugins/bidi/plugin.js
1 /* 1 /* 2 2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. 3 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 4 */ 5 5 6 6 (function() 7 7 { 8 var guardElements = { table:1, tbody: 1, ul:1, ol:1, blockquote:1, div:1, tr:1 },8 var guardElements = { table:1, ul:1, ol:1, blockquote:1, div:1 }, 9 9 directSelectionGuardElements = {}, 10 10 // All guard elements which can have a direction applied on them. 11 11 allGuardElements = {}; … … 153 153 while ( ancestor && ancestor.type == CKEDITOR.NODE_ELEMENT 154 154 && ( parent = ancestor.getParent() ) 155 155 && parent.getChildCount() == 1 156 && ( !( ancestor.getName() in elements ) || ( parent.getName() in elements ) ) 157 ) 156 && !( ancestor.getName() in elements ) ) 158 157 ancestor = parent; 159 158 160 159 return ancestor.type == CKEDITOR.NODE_ELEMENT … … 209 208 { 210 209 return !! ( node.type == CKEDITOR.NODE_ELEMENT 211 210 && node.getName() in guardElements 212 && !( node.getName() == ( enterMode == CKEDITOR.ENTER_P ) ? 'p' : 'div'211 && !( node.getName() == ( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) 213 212 && node.getParent().type == CKEDITOR.NODE_ELEMENT 214 213 && node.getParent().getName() == 'blockquote' ) 215 214 // Element must be fully included in the range as well. (#6485). … … 225 224 226 225 while ( ( block = iterator.getNextParagraph() ) ) 227 226 !block.isReadOnly() && switchDir( block, dir, editor, database ); 228 }227 } 229 228 230 229 CKEDITOR.dom.element.clearAllMarkers( database ); 231 230 -
_source/plugins/domiterator/plugin.js
335 335 // next interation. 336 336 if ( !this._.nextNode ) 337 337 { 338 this._.nextNode = ( isLast || block.equals( lastNode ) ) ? null : 339 block.getNextSourceNode( true, null, lastNode ); 340 } 338 var nextNode = ( isLast || block.equals( lastNode ) ) ? null : 339 block.getNextSourceNode( 1, null, lastNode ); 341 340 342 if ( !bookmarkGuard( this._.nextNode ) )343 {344 this._.nextNode = this._.nextNode.getNextSourceNode( true, null, function( node ) 345 { return !node.equals( lastNode ) && bookmarkGuard( node ); } );341 while( !bookmarkGuard( nextNode ) ) 342 nextNode = nextNode.getNextSourceNode( 1, null, lastNode ); 343 344 this._.nextNode = nextNode; 346 345 } 347 346 348 347 return block;