Ticket #5436: 5436_5.patch
File 5436_5.patch, 867 bytes (added by , 13 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
121 121 122 122 range.moveToPosition( lastElement, CKEDITOR.POSITION_AFTER_END ); 123 123 124 var next = lastElement.getNextSourceNode( true ); 125 var lastElementIsInline = CKEDITOR.dtd.$inline[ lastElement.getName() ] 126 if ( !lastElementIsInline && next && next.type == CKEDITOR.NODE_ELEMENT ) 127 range.moveToElementEditStart( next ); 124 if ( isBlock ) 125 { 126 var next = lastElement.getNext( function( el ) 127 { 128 return el.type == CKEDITOR.NODE_ELEMENT; 129 }); 130 131 if ( next && CKEDITOR.dtd.$block[ next.getName() ] ) 132 range.moveToElementEditStart( next ); 133 } 128 134 129 135 selection.selectRanges( [ range ] ); 130 136