Ticket #6828 (confirmed Bug)

Opened 4 years ago

Last modified 4 years ago

[IE] Block selection breaks enterBr

Reported by: garry.yao Owned by:
Priority: Normal Milestone:
Component: Core : Selection Version: 3.0
Keywords: IE Opera Cc:

Description

  1. Load the editor with the following content with enterBr:
    <div>
    	line1<br />
    	line2<br />
    	line3</div>
    
  2. Fully select first two lines by mouse;
  3. Click on "Indent" button;
  • Actual Result: All three lines are indented.
  • Expected Result: New block (div) created for the first two lines which get indented.

Same problem applies to other block commands like alignment.

Change History

comment:1 Changed 4 years ago by garry.yao

This's probably due to the mouse selection has result in the following range which includes the the second <br> inside:

<div>
	line1<br />
	line2<br />
	line3</div>

comment:2 Changed 4 years ago by garry.yao

  • Keywords Opera added
  • Status changed from new to confirmed

IE and Opera are including the the tail <br> when selecting one line.

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