Opened 8 years ago

Last modified 8 years ago

#14833 confirmed Bug

Font set on multi-line text then numbered list causes extra line breaks in numbered list

Reported by: arodden Owned by:
Priority: Normal Milestone:
Component: Core : Lists Version: 4.5.0
Keywords: Cc:

Description

Steps to reproduce

Paste the following 4 lines in full ckeditor, or type them in (use a line break and not a new paragraph after each line). If pasting, make sure pasting as plain text.

One
Two
Three
Four

Select the 4 lines and change the font to another font (for example, Courier New).

With the 4 lines still selected, click the Insert/Remove Numbered List. It will look like this

1.
   One
2.
   Two
3.
   Three
4. Four

The first 3 list items have a line break injected after the number and before the text.

Expected result

1. One
2. Two
3. Three
4. Four

Actual result

1.
   One
2.
   Two
3.
   Three
4. Four

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

Browser: Chrome 52.0.2743.116 on Windows 7

Editor version: ckeditor Version 4.5.10, 13 Jul 2016

Also tried in nightly build 30-Aug-2016 full editor and had same results.

Change History (1)

comment:1 Changed 8 years ago by Jakub Ś

Component: GeneralCore : Lists
Keywords: numbered list removed
Status: newconfirmed
Version: 4.5.114.5.0

Problem can be reproduced from CKEditor 4.5.0 in all browsers.

Up to version 4.4.8, this code:

<p><span style="font-family:comic sans ms,cursive">aa<br />
bb<br />
cc<br />
dd</span></p>

was converted to:

<ol>
	<li><span style="font-family:comic sans ms,cursive">aa</span></li>
	<li><span style="font-family:comic sans ms,cursive">bb</span></li>
	<li><span style="font-family:comic sans ms,cursive">cc</span></li>
	<li><span style="font-family:comic sans ms,cursive">dd</span></li>
</ol>

but starting from version 4.5.0 it looks like:

<ol>
	<li><br />
	<span style="font-family:Comic Sans MS,cursive">aa</span></li>
	<li><br />
	<span style="font-family:Comic Sans MS,cursive">bb</span></li>
	<li><br />
	<span style="font-family:Comic Sans MS,cursive">cc</span></li>
	<li><span style="font-family:Comic Sans MS,cursive">dd</span></li>
</ol>
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