Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#10593 closed Bug (duplicate)

While paste contents from .docx file into ckeditor then getting issue

Reported by: Payal Mulani Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version: 3.6.3
Keywords: Cc:

Description

Dear Sir/madam,

We are using CKeditor Version:'3.6.3',revision:'7474'.

Issue


While we paste contents from Ms word (.docx) especially second level numbered list as like below into ckeditor

  1. Something 1.1. something 1.2. something 1.3. something

then we are getting 'output' as like below

  1. Something
    1. something
    2. something
    3. something

Hence please let me know what is the problem.either we need to move to latest version or what should we need to do..

Please do the needful.

Thanks.

Attachments (9)

originalsnap1.jpg.png (55.7 KB) - added by Payal Mulani 6 years ago.
original .docx file from which we are copying the text
output.jpg.png (29.1 KB) - added by Payal Mulani 6 years ago.
output after pasting text from word file
1.png (140.8 KB) - added by Payal Mulani 6 years ago.
Source code while copy from .docx file
2.png (145.9 KB) - added by Payal Mulani 6 years ago.
while copy from .docx file
2_output.png (93.9 KB) - added by Payal Mulani 6 years ago.
Output of 2nd File
4.jpg.png (34.1 KB) - added by Payal Mulani 6 years ago.
While copying from .odt file into ckeditor
5.jpg.png (37.0 KB) - added by Payal Mulani 6 years ago.
output of snap 4.jpg
Something.odt (9.7 KB) - added by Payal Mulani 6 years ago.
source file from which I'm copying content
ckeditor_live_demo.jpg (153.8 KB) - added by Payal Mulani 6 years ago.
output of .odt file into ckeditor demo

Download all attachments as: .zip

Change History (15)

Changed 6 years ago by Payal Mulani

Attachment: originalsnap1.jpg.png added

original .docx file from which we are copying the text

Changed 6 years ago by Payal Mulani

Attachment: output.jpg.png added

output after pasting text from word file

comment:1 Changed 6 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed

DUP of #8516

HTML doesn't support such numbering. This can be done with custom CSS that you could add to contents.css file.

Changed 6 years ago by Payal Mulani

Attachment: 1.png added

Source code while copy from .docx file

Changed 6 years ago by Payal Mulani

Attachment: 2.png added

while copy from .docx file

Changed 6 years ago by Payal Mulani

Attachment: 2_output.png added

Output of 2nd File

Changed 6 years ago by Payal Mulani

Attachment: 4.jpg.png added

While copying from .odt file into ckeditor

Changed 6 years ago by Payal Mulani

Attachment: 5.jpg.png added

output of snap 4.jpg

comment:2 Changed 6 years ago by Payal Mulani

Thanks for your reply. I've applied the css as like below. OL { counter-reset: item } LI { display: block } LI:before { content: counters(item, ".") " "; counter-increment: item }

AND it is working with Openoffice file (.odt) but it is not working in IE7 browser. also If we copy from .docx File then It'll generate the Structure like(<P> tag)(See the snap1,2 and 3)

but if we copy from .ODT file then it'll generate the Structure Like (<OL><LI> like that..

see the snap 4 & 5)

Hence Ultimately we are not getting perfect Solution.so please give us solution.

Thanks.

comment:3 Changed 6 years ago by Jakub Ś

All I can say is keep trying.

  1. Please make sure that what you actually create in MS Word is actually a list.
  2. About IE7 - please make sure CSS you use is supported in IE7.

comment:4 Changed 6 years ago by Payal Mulani

Hi All,

Now I have tried into ckeditor Live demo. Link :- http://ckeditor.com/demo I have copy content from the (something.odt) file which I have attached and then paste it into Live demo (ckeditor_live_demo.jpg) and see the out put into attached file (ckeditor_live_demo.jpg) and also you can see the source code is like <OL><LI> Likewise.

Ultemately I want to show you that inside Live demo also I can't see subpoint proper. Hence I would like to ask you whether is this a ckeditor bug or will it be fixed into next coming version or what? Please answer me as an urgent basis.

Thanks.

Changed 6 years ago by Payal Mulani

Attachment: Something.odt added

source file from which I'm copying content

Changed 6 years ago by Payal Mulani

Attachment: ckeditor_live_demo.jpg added

output of .odt file into ckeditor demo

comment:5 Changed 6 years ago by Jakub Ś

In this particular case browser sees HTML from Open Office as:

<ol><li><p style="margin-bottom: 0.35cm">Something</p>
	<ol><li><p style="margin-bottom: 0.35cm">something</p>
		</li><li><p style="margin-bottom: 0.35cm">something</p>
	</li></ol>
	</li><li><p style="margin-bottom: 0.35cm">Something</p>
	<ol><li><p style="margin-bottom: 0.35cm">something</p>
		</li><li><p style="margin-bottom: 0.35cm">something</p>
		</li><li><p style="margin-bottom: 0.35cm">something</p>
		</li><li><p style="margin-bottom: 0.35cm">something</p>
	</li></ol>
</li></ol>
<p style="margin-left: 1.4cm; margin-bottom: 0.35cm"><a name="_GoBack"></a>
<br><br>
</p>
<p style="margin-left: 1.4cm; margin-bottom: 0.35cm"><br><br>
</p>
<p style="margin-bottom: 0cm"><br>
</p>

This is plain HTML.

Once again HTML doesn't support such numbering. It isn't editor but HTML. You can only do it with CSS. If this CSS is not working for you need to adjust it.

This ticket will not be continued.

comment:6 Changed 6 years ago by Frederico Caldeira Knabben

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