Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with ordering of DOM-Elements in lists with Enter Mode BR #639

Open
b2m opened this issue Jul 12, 2017 · 1 comment
Open

Problem with ordering of DOM-Elements in lists with Enter Mode BR #639

b2m opened this issue Jul 12, 2017 · 1 comment
Labels
status:confirmed An issue confirmed by the development team. type:bug A bug.

Comments

@b2m
Copy link

b2m commented Jul 12, 2017

Are you reporting a feature or a bug?

Bug

Check if the issue is already reported

No duplicates found.

Provide detailed reproduction steps (if any)

  1. Use config.enterMode = CKEDITOR.ENTER_BR; or the option Break the line with a <br> on http://sdk.ckeditor.com/samples/enterkey.html.
  2. Produce or paste the following HTML Markup in source code mode:
<strong>This is some bold Text with some <em>em</em><br>
and a linebreak after that.</strong>
  1. Select the two lines of text and generate a bullet point list using the List-Button in the Toolbar (WYSIWYG-Mode).

Expected result

Each line equals one element in the list.

<ul>
	<li><strong>This is some bold Text with some <em>em</em></strong></li>
	<li><strong>and a linebreak after that.</strong></li>
</ul>

Actual result

The elements in the first line are reordered.

<ul>
	<li><br>
	<strong><em>em</em>This is some bold Text with some </strong></li>
	<li><strong>and a linebreak after that.</strong></li>
</ul>

Other details

@msamsel msamsel added status:confirmed An issue confirmed by the development team. type:bug A bug. labels Jul 13, 2017
@msamsel
Copy link
Contributor

msamsel commented Jul 13, 2017

Problem exists still on 4.7.1.
demo: https://codepen.io/msamsel/pen/xrMzBR?editors=1010

  1. Open demo page.
  2. Select entire text.
  3. Make list from selection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:confirmed An issue confirmed by the development team. type:bug A bug.
Projects
None yet
Development

No branches or pull requests

2 participants