Ticket #7467: 7467_3.patch
File 7467_3.patch, 943 bytes (added by , 13 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
366 366 activateEditing( editor ); 367 367 368 368 // Ensure bogus br could help to move cursor (out of styles) to the end of block. (#7041) 369 var pathBlock = path.block || path.blockLimit; 370 if ( pathBlock && !pathBlock.getBogus() ) 369 var pathBlock = path.block || path.blockLimit, 370 lastNode = pathBlock && pathBlock.getLast( isNotEmpty ); 371 372 // In case it's not ended with block element and doesn't have bogus yet. (#7467) 373 if ( pathBlock 374 && !( lastNode && lastNode.type == CKEDITOR.NODE_ELEMENT && lastNode.isBlockBoundary() ) 375 && !pathBlock.is( 'pre' ) 376 && !pathBlock.getBogus() ) 371 377 { 372 378 editor.fire( 'updateSnapshot' ); 373 379 restoreDirty( editor );