Ticket #4621: 4621.patch

File 4621.patch, 1.1 KB (added by Garry Yao, 14 years ago)
  • _source/core/dom/range.js

     
    11831183                                        this.setStartAt(
    11841184                                                        blockBoundary,
    11851185                                                        !blockBoundary.is( 'br' ) &&
    1186                                                         ( !enlargeable || blockBoundary.contains( enlargeable ) ) ?
     1186                                                        ( !enlargeable && this.checkStartOfBlock()
     1187                                                          || enlargeable && blockBoundary.contains( enlargeable ) ) ?
    11871188                                                                CKEDITOR.POSITION_AFTER_START :
    11881189                                                                CKEDITOR.POSITION_AFTER_END );
    11891190
     
    12081209                                        // the document position of it with 'enlargeable' node.
    12091210                                        this.setEndAt(
    12101211                                                        blockBoundary,
    1211                                                         !blockBoundary.is( 'br' ) &&
    1212                                                         ( !enlargeable || blockBoundary.contains( enlargeable ) ) ?
     1212                                                        ( !enlargeable && this.checkEndOfBlock()
     1213                                                          || enlargeable && blockBoundary.contains( enlargeable ) ) ?
    12131214                                                                CKEDITOR.POSITION_BEFORE_END :
    12141215                                                                CKEDITOR.POSITION_BEFORE_START );
    12151216                                        // We must include the <br> at the end of range if there's
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy