Opened 9 years ago

Last modified 9 years ago

#14271 confirmed Bug

By pressing ENTER below a table in an enumerated list item, the whole list item will be deleted

Reported by: compu Owned by:
Priority: Normal Milestone:
Component: General Version: 4.5.6
Keywords: enumeration, table Cc:

Description

Steps to reproduce

  1. Insert an enumerated list in CKEditor
  2. Write "Hello World" as first item in this list
  3. Press SHIFT + ENTER for simple linebreak without paragraph
  4. Insert a table (e.g. with default settings: 3 lines, 2 columns)
  5. Place the cursor directly below the table
  6. Press ENTER

Now the whole enumeration is deleted.

Alternatively you can just paste the following generated code into the source-view, go back to wysiwyg-view, place your cursor in the line directly after the table and press ENTER

<ol>
	<li>Hello World
	<table border="1" cellpadding="1" cellspacing="1" style="width:500px">
		<tbody>
			<tr>
				<td>a</td>
				<td>b</td>
			</tr>
			<tr>
				<td>c</td>
				<td>d</td>
			</tr>
			<tr>
				<td>e</td>
				<td>f</td>
			</tr>
		</tbody>
	</table>

	<p>&nbsp;</p>
	</li>
</ol>

Expected result

We would expect either:

  • a linebreak after pressing ENTER, but having the possibility to create another enumeration item "2."

or:

  • after inserting the table another enumeration item is automatically generated and the cursor is placed in "2."

Actual result

The whole enumeration item "1." including the table is deleted, by just pressing ENTER.

Other details (browser, OS, CKEditor version, installed plugins)

This is reproducible with the following browsers in the current official CKEditor Demo, but also in older versions of CKEditor: Firefox 42, Chrome 47, Internet Explorer 11,

Attachments (1)

CKEditor_enumeration_table.png (21.2 KB) - added by compu 9 years ago.

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by compu

comment:1 Changed 9 years ago by kkrzton

Status: newconfirmed

Confirmed for Chrome 47.0.2526.106 with CKEditor 4.5.6.

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