Ticket #5436: 5436_3.patch
File 5436_3.patch, 815 bytes (added by , 13 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
122 122 range.moveToPosition( lastElement, CKEDITOR.POSITION_AFTER_END ); 123 123 124 124 var next = lastElement.getNextSourceNode( true ); 125 var lastElementIsInline = CKEDITOR.dtd.$inline[ lastElement.getName() ] 126 if ( !lastElementIsInline && next && next.type == CKEDITOR.NODE_ELEMENT ) 125 126 var rangeAncestor = range.getCommonAncestor( true ).getName(); 127 var rangeAncestorisValid = CKEDITOR.dtd.$blockLimit[ rangeAncestor ] && rangeAncestor != 'body'; 128 if ( !rangeAncestorisValid ) 127 129 range.moveToElementEditStart( next ); 128 130 129 131 selection.selectRanges( [ range ] );