Opened 6 years ago

Closed 6 years ago

#3982 closed Bug (fixed)

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

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

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 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 6 years ago by garry.yao

comment:2 Changed 6 years ago by garry.yao

  • Keywords Review? added

comment:3 Changed 6 years ago by fredck

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

comment:4 Changed 6 years ago by garry.yao

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

Fixed with [3967].

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