Opened 15 years ago

Closed 15 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 15 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 15 years ago by Garry Yao

Status: newassigned

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 15 years ago by Garry Yao

Attachment: 3982.patch added

comment:2 Changed 15 years ago by Garry Yao

Keywords: Review? added

comment:3 Changed 15 years ago by Frederico Caldeira Knabben

Component: Core : StylesCore : Lists
Keywords: Review+ added; Review? removed

comment:4 Changed 15 years ago by Garry Yao

Resolution: fixed
Status: assignedclosed

Fixed with [3967].

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