Opened 13 years ago
Last modified 9 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 )
Descriptive summary : Copy-Pasting content from MS Word 2007 to the newly downloaded CKEditor 3.X causes the following issue:
- The multi-layered bullet points do not appear correctly.
- 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:
- computer configuration: Intel Pentium
- OS: Windows Server 2003 R2 - SP2
Client 1:
- computer configuration: Intel core i5
- OS: Windows 7 Ultimate (x32)
- Browser name and version: IE9
Client 1:
- computer configuration: Intel core i5
- OS: Windows 7 Ultimate (x64)
- Browser name and version: IE8
Screenshot : attached
Sample data : attached
Please see comment:4
Attachments (3)
Change History (13)
Changed 13 years ago by
Attachment: | Sample issues document Word 2007.docx added |
---|
Changed 13 years ago by
Attachment: | Editor screenshot.png added |
---|
Changed 13 years ago by
Attachment: | Demo tool screenshot.png added |
---|
comment:1 Changed 13 years ago by
Component: | General → Core : Lists |
---|---|
Status: | new → confirmed |
Version: | 3.6.2 → 3.5.3 |
comment:4 follow-up: 6 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Summary: | Paste from MS Word 2007 - format issues → Introduce Html ordered list 1.1, 1.2 (also when pasting from MS Word) |
Type: | Bug → New Feature |
Version: | 3.5.3 → 3.0 |
Perhaps I got too quick with confirming this ticket.
- 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.
- 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:6 Changed 9 years ago by
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.
- 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.
- 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/CountersCurrently 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 9 years ago by
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 9 years ago by
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:
- Test3
- Test4
instead of:
- Test3
- Test4
comment:9 Changed 9 years ago by
Please read about ACF first:
http://docs.ckeditor.com/#!/guide/dev_acf
http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter
http://docs.ckeditor.com/#!/guide/dev_disallowed_content
http://docs.ckeditor.com/#!/api/CKEDITOR.filter-method-addTransformations
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraAllowedContent
http://nightly.ckeditor.com/14-03-20-07-05/full/samples/datafiltering.html
Next please try the same example with below editor configuration:
var editor = CKEDITOR.replace( 'editor1', { extraAllowedContent : 'li[value]' });
EDIT: You will have to set that configuration in your own local editor and not the demo of course.
This part of the ticket is invalid. All you have to do is set
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".