Opened 8 years ago

Last modified 4 years ago

#8516 confirmed New Feature

Introduce Html ordered list 1.1, 1.2 (also when pasting from MS Word)

Reported by: KevinAngelo Owned by:
Priority: Normal Milestone:
Component: Core : Lists Version: 3.0
Keywords: Cc:

Description (last modified by Jakub Ś)

Descriptive summary : Copy-Pasting content from MS Word 2007 to the newly downloaded CKEditor 3.X causes the following issue:

  1. The multi-layered bullet points do not appear correctly.
  2. The MS Word style "Title" has an underline which is not pasted into the editor.

Steps to reproduce : Copy content from the attached word file to the online demo.

Browser name and OS : We have installed the editor on a Virtual Machine:

  1. computer configuration: Intel Pentium
  2. OS: Windows Server 2003 R2 - SP2

Client 1:

  1. computer configuration: Intel core i5
  2. OS: Windows 7 Ultimate (x32)
  3. Browser name and version: IE9

Client 1:

  1. computer configuration: Intel core i5
  2. OS: Windows 7 Ultimate (x64)
  3. Browser name and version: IE8

Screenshot : attached

Sample data : attached

Please see comment:4

Attachments (3)

Sample issues document Word 2007.docx (12.8 KB) - added by KevinAngelo 8 years ago.
Editor screenshot.png (46.2 KB) - added by KevinAngelo 8 years ago.
Demo tool screenshot.png (50.9 KB) - added by KevinAngelo 8 years ago.

Download all attachments as: .zip

Change History (13)

Changed 8 years ago by KevinAngelo

Changed 8 years ago by KevinAngelo

Attachment: Editor screenshot.png added

Changed 8 years ago by KevinAngelo

Attachment: Demo tool screenshot.png added

comment:1 Changed 8 years ago by Jakub Ś

Component: GeneralCore : Lists
Status: newconfirmed
Version: 3.6.23.5.3

2.The MS Word style "Title" has an underline which is not pasted into the editor.

This part of the ticket is invalid. All you have to do is set

config.pasteFromWordRemoveFontStyles=false;
config.pasteFromWordRemoveStyles=false;

1.The multi-layered bullet points do not appear correctly.

Results vary depending on a browser but the numbering in sub lists is not the same as in word.
All browsers except Webkit see pasted content as lists. Webkit sees paragraphs.
I think Firefox is the closest to the expected result.
All browsers (except Webkit) use deprecated value tag in li tags.

Issue has been reproducible from CKEditor 3.5.3 rev [6616] when new numbering for nested lists was introduced.

Before this changeset the provided example data caused sublists to be pasted with bullets or caused alert to popup "It was not possible to clean up pasted data due to an internal error".

Last edited 7 years ago by Jakub Ś (previous) (diff)

comment:2 Changed 8 years ago by Jakub Ś

Other tickets caused by [6616] revision: #7982, #8136, #8780

comment:3 Changed 7 years ago by Jakub Ś

Problem can be reproduced in CKEditor 4.

comment:4 Changed 7 years ago by Jakub Ś

Description: modified (diff)
Summary: Paste from MS Word 2007 - format issuesIntroduce Html ordered list 1.1, 1.2 (also when pasting from MS Word)
Type: BugNew Feature
Version: 3.5.33.0

Perhaps I got too quick with confirming this ticket.

  1. I have noticed that list from word gets pasted as 3 lists but if in MS Word you remove paragraphs between list and sublists then CKEditor sees one list.
  2. About numbering - the problem is that html doesn't support such numbering by default. You have to use CSS for it e.g.
    http://stackoverflow.com/questions/4098195/can-ordered-list-produce-result-that-looks-like-1-1-1-2-1-3-instead-of-just-1
    http://stackoverflow.com/questions/10405945/html-ordered-list-1-1-1-2-nested-counters-and-scope-not-working
    http://stackoverflow.com/questions/3635955/how-to-create-a-1-1-1-2-1-3-html-list
    https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Counters

Currently we don't see a way to implement this so I'm changing this Bug Report to Feature Request that perhaps will be implemented in the future.

Last edited 5 years ago by Jakub Ś (previous) (diff)

comment:5 Changed 5 years ago by Jakub Ś

#12603 was marked as duplicate.

comment:6 in reply to:  4 Changed 4 years ago by Dev1

Hello, now with HTML5 the value attribute for the < li> is no longer deprecated: http://www.w3.org/TR/html-markup/li.html . When it will be supported in CKEditor?

Replying to j.swiderski:

Perhaps I got too quick with confirming this ticket.

  1. I have noticed that list from word gets pasted as 3 lists but if in MS Word you remove paragraphs between list and sublists then CKEditor sees one list.
  2. About numbering - the problem is that html doesn't support such numbering by default. You have to use CSS for it e.g.
    http://stackoverflow.com/questions/4098195/can-ordered-list-produce-result-that-looks-like-1-1-1-2-1-3-instead-of-just-1
    http://stackoverflow.com/questions/10405945/html-ordered-list-1-1-1-2-nested-counters-and-scope-not-working
    http://stackoverflow.com/questions/3635955/how-to-create-a-1-1-1-2-1-3-html-list
    https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Counters

Currently we don't see a way to implement this so I'm changing this Bug Report to Feature Request that perhaps will be implemented in the future.

comment:7 Changed 4 years ago by Jakub Ś

Please see http://www.w3.org/TR/2012/WD-html5-20121025/the-li-element.html#attr-li-value and http://www.w3schools.com/tags/att_li_value.asp

The value attribute is supported but it allows only integers so it means that you can't use 1.1.1 there. If you use it anyway, the number will be read to first dot. This means that when using e.g. 1.2.3 you will end up with only 1.

Please try below example in your browser.

<ol>
	<li value="1">Test1
	<ol>
		<li value="1.1">Test11</li>
		<li value="1.2">Test12</li>
	</ol>
	</li>
</ol>

To answer your question "When it will be supported in CKEditor?".
We would love to implement it but HTML needs to support it first.

comment:8 Changed 4 years ago by Dev1

Please try below example in CKEditor Demo (http://ckeditor.com/demo):

<ol>

<li value="3">Test3</li> <li value="4">Test4</li>

</ol>

The result is:

  1. Test3
  2. Test4

instead of:

  1. Test3
  2. Test4

comment:10 Changed 4 years ago by Dev1

Thanks, it works!

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy