Ticket #4621: 4621.patch
File 4621.patch, 1.1 KB (added by , 14 years ago) |
---|
-
_source/core/dom/range.js
1183 1183 this.setStartAt( 1184 1184 blockBoundary, 1185 1185 !blockBoundary.is( 'br' ) && 1186 ( !enlargeable || blockBoundary.contains( enlargeable ) ) ? 1186 ( !enlargeable && this.checkStartOfBlock() 1187 || enlargeable && blockBoundary.contains( enlargeable ) ) ? 1187 1188 CKEDITOR.POSITION_AFTER_START : 1188 1189 CKEDITOR.POSITION_AFTER_END ); 1189 1190 … … 1208 1209 // the document position of it with 'enlargeable' node. 1209 1210 this.setEndAt( 1210 1211 blockBoundary, 1211 !blockBoundary.is( 'br' ) &&1212 ( !enlargeable ||blockBoundary.contains( enlargeable ) ) ?1212 ( !enlargeable && this.checkEndOfBlock() 1213 || enlargeable && blockBoundary.contains( enlargeable ) ) ? 1213 1214 CKEDITOR.POSITION_BEFORE_END : 1214 1215 CKEDITOR.POSITION_BEFORE_START ); 1215 1216 // We must include the <br> at the end of range if there's