Ticket #7490 (closed Bug: fixed)

Opened 4 years ago

Last modified 3 years ago

[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@…

Description

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

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

Change History

comment:1 Changed 4 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 4 years ago by satya

  • Cc satya_minnekanti@… added

Changed 3 years ago by garry.yao

comment:3 Changed 3 years ago by garry.yao

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

Design TC updated: run

comment:4 Changed 3 years ago by fredck

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

range::enlarge is really a damt beast!

comment:5 Changed 3 years ago by garry.yao

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

Fixed with [7218].

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