Opened 18 years ago

Last modified 17 years ago

#3051 closed Bug

Domiterator incorrect with enforceRealBlock — at Version 2

Reported by: Garry Yao Owned by:
Priority: Normal Milestone: CKEditor 3.1
Component: General Version: 3.0 Beta 2
Keywords: Confirmed Cc:

Description (last modified by Garry Yao)

When domiterator establish new block for one of the ​pseudo blocks, others should be left untouched, which is currently not respected.

Procedures

  1. Open the replace by code example page;
  2. Make the following content with selection:
    <div>
    	first
    	<p>paragraph</p>se^cond</div>
    
  3. Click on Increase Indent command.
  • Actual Result : A new paragraph is establish for text node 'first' and is indented also.
    <div>
    	<p style="margin-left: 40px;">
    		first</p>
    	<p>
    		paragraph</p>
    	<p style="margin-left: 40px;">
    		second</p>
    </div>
    
  • Expected Result : The pseudo block contains text 'first' should be left untouched while the 'second' chunk should be indented.
    <div>
    	first
    	<p>
    		paragraph</p>
    	<p style="margin-left: 40px;">
    		second</p>
    </div>
    

Change History (3)

comment:1 Changed 18 years ago by Garry Yao

Description: modified (diff)
Summary: RangeIterator not correct with enforcing real blocks → Domiterator incorrect with enforceRealBlock

Changed 18 years ago by Garry Yao

Attachment: test-domiterator.patch​ added

Unit Test Case

comment:2 Changed 18 years ago by Garry Yao

Description: modified (diff)
Keywords: Confirmed added
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy