Ticket #3358 (new Task)

Opened 5 years ago

Last modified 3 years ago

Optimize 'CKEDITOR.dom.range.enlarge' on block unit

Reported by: garry.yao Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: HasPatch Cc:

Description

After enlarging the range with a block unit with the following input:

<div>text^<p>paragraph</p></div>^

We'll got:

<div>^text<p>paragraph</p></div>^

No we got a partially selected block, it's better to have the 'div' been fully selected to prevent consequence operation like extractContent from resulting in unwanted node pieces, so an optimized result would be the following:

^<div>text<p>paragraph</p></div>^

Attachments

3358.patch (2.7 KB) - added by garry.yao 5 years ago.
test_range_enlarge_block.patch (4.2 KB) - added by garry.yao 5 years ago.
Unit Test Case

Change History

Changed 5 years ago by garry.yao

comment:1 Changed 5 years ago by garry.yao

  • Keywords HasPatch added

The proposed patch is containing the latest patch from #3360 on which it depends.

Changed 5 years ago by garry.yao

Unit Test Case

comment:2 Changed 5 years ago by fredck

  • Milestone changed from CKEditor 3.0 to CKEditor 3.x

comment:3 Changed 4 years ago by fredck

  • Milestone CKEditor 3.x deleted

Milestone CKEditor 3.x deleted

comment:4 Changed 3 years ago by garry.yao

  • Type changed from Bug to Task

comment:5 Changed 3 years ago by wwalc

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