Ticket #3982 (closed Bug: fixed)

Opened 5 years ago

Last modified 5 years ago

Enterkey on empty list item result weird

Reported by: garry.yao Owned by: garry.yao
Priority: Normal Milestone: CKEditor 3.0
Component: Core : Lists Version:
Keywords: Confirmed Review+ Cc:

Description

Reproducing Procedures

  1. Open the 'replace by class' sample page.
  2. Load the document with following content and selection:
    <table>
    	<tbody>
    	<tr>
    		<td>
    			<ol>
    				<li>item1
    					<ol>
    						<li>item2</li>
    						<li><br />^</li>
    					</ol>
    				</li>
    			</ol>
    		</td>
    	</tr>
    	</tbody>
    </table>
    
  3. Press enter two times;
    • Actual Result: The result structure is in a mess;
    • Expected Result: The list keep unchanged with cursor stay at the end of list;

Attachments

3982.patch (2.4 KB) - added by garry.yao 5 years ago.

Change History

comment:1 Changed 5 years ago by garry.yao

  • Status changed from new to assigned

Actually it's a quite a serious bug, actually when the first enter is pressed, the DOM is already wrong, which shows that simply outdent the list as currently does is not enough:

<ol>
	<li>item1
		<ol>
			<li>item2</li>
		</ol>
		<li><br/></li>
	</li>
</ol>

Changed 5 years ago by garry.yao

comment:2 Changed 5 years ago by garry.yao

  • Keywords Review? added

comment:3 Changed 5 years ago by fredck

  • Keywords Review+ added; Review? removed
  • Component changed from Core : Styles to Core : Lists

comment:4 Changed 5 years ago by garry.yao

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

Fixed with [3967].

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