﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16948	Adding a list removes preceding empty line with enterMode = CKEDITOR.ENTER_BR	Claas Augner		"== Problem ==

When using the `CKEDITOR.ENTER_BR` ''enterMode'', adding a (numbered or bulleted) list after an empty line removes this preceding line.

== Steps to reproduce ==

**Step 1**: Go to {{{http://sdk.ckeditor.com/samples/enterkey.html}}}

**Step 2**: Choose ''When {{{Enter}}} is pressed:'' `Break the line with a <br>`
(Screenshot 1)

**Step 3**: Add the following text:
{{{
Line before empty line

First item
}}}
(Screenshot 2)

**Step 4**: Move the cursor to the line containing ''First item'' and press:

(Screenshot 3)

(Screenshot 4)

**Expected behavior**: A list is created with ''First item'' as its first item, leaving the preceding line intact.
**Actual behavior**: The list is created, but the preceding line is removed (*).

(*) Note that in the example there is a margin between the first line and the list, so that the removal of the line is not necessarily noticable (especially in the example):

(Screenshot 5)

== Solutions ==

The behavior of adding a list (same holds for indentation using the ''indentblock'' plug-in) should be changed so that it does not remove a preceding empty line.

It might be desirable to make this behavioral change configurable in order to maintain backward-compatibility."	Bug	new	Normal		Core : Lists	4.7.0			
