Opened 15 years ago

Last modified 14 years ago

#3051 closed Bug

Domiterator incorrect with enforceRealBlock — at Version 1

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 (2)

comment:1 Changed 15 years ago by Garry Yao

Description: modified (diff)
Summary: RangeIterator not correct with enforcing real blocksDomiterator incorrect with enforceRealBlock

Changed 15 years ago by Garry Yao

Attachment: test-domiterator.patch added

Unit Test Case

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