Opened 5 years ago

Closed 4 years ago

#7490 closed Bug (fixed)

[IE] Extra <br> counted at the end of selection

Reported by: garry.yao Owned by: garry.yao
Priority: Normal Milestone: CKEditor 3.6.2
Component: Core : Selection Version: 3.0
Keywords: IE Opera Cc: satya_minnekanti@…


With editor using enterMode BR:

  1. load editor with the following content:
    <p>line1<br />line2<br />line3</p>
  2. Have the first two lines fully selected (by mouse drag to expand selection)
  3. Click on any block format command, e.g. Indentation.
  • Actual Result: Last line is also affected;
  • Expected: Only selected lines are affected.

Attachments (1)

7490.patch (1.0 KB) - added by garry.yao 4 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 years ago by garry.yao

  • Status changed from new to confirmed

IE and Opera seems to embrace the next line break br within the selection while the line text is fully selected, then after range expands, it reaches the end of next line, which is visually counter-intuitive.

comment:2 Changed 5 years ago by satya

  • Cc satya_minnekanti@… added

Changed 4 years ago by garry.yao

comment:3 Changed 4 years ago by garry.yao

  • Owner set to garry.yao
  • Status changed from confirmed to review

Design TC updated: run

comment:4 Changed 4 years ago by fredck

  • Milestone set to CKEditor 3.6.2
  • Status changed from review to review_passed

range::enlarge is really a damt beast!

comment:5 Changed 4 years ago by garry.yao

  • Resolution set to fixed
  • Status changed from review_passed to closed

Fixed with [7218].

Note: See TracTickets for help on using tickets.
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy