Opened 13 years ago

Closed 8 years ago

Last modified 8 years ago

#8231 closed Bug (fixed)

Paste or PaasteFromWord with CKEditor in Webkit and Opera inserts empty paragraphs.

Reported by: spgard Owned by:
Priority: Normal Milestone: CKEditor 4.6.0
Component: Plugin : Paste from Word Version: 3.0
Keywords: Cc:

Description (last modified by Jakub Ś)

Steps to reproduce:

  1. Copy the below code taken from http://ckeditor.com/demo
    <h1>
    	<img alt="" src="http://a.cksource.com/c/1/inc/img/demo-little-red.jpg" style="margin-left: 10px; margin-right: 10px; float: left; width: 120px; height: 168px;" />Little Red Riding Hood</h1>
    
  2. Go to CKEditor sample (any sample)
  3. Clear editor contents using Command+A and Backspace
  4. Paste the demo contents using Command+V
  5. Switch to source

Result:In full page mode there will be extra empty paragraph right after body tag and from CKEditor 3.5.4 rev [6698] there will also be extra empty paragraph right before closing body tag. In any non full page sample you will see empty paragraph at the top and form CKE 3.5.4 also at the bottom


  1. Copy sample list from the attached listTest.doc
  2. Go to CKEditor sample (any sample)
  3. Clear editor contents using Command+A and Backspace
  4. Paste the demo contents using Command+V
  5. Switch to source

Result:You will see empty paragraph at the top and form CKE 3.5.4 also at the bottom


Paragraph at the top has been reproducible in Opera and Webkit from CKEditor 3.0 In Opera 11.62 it is not possible to copy contents from one editor into another so the problem is only reproducible in Webkit. Further more - problem with paragraph at top is because of bug #6131, that is why this ticket should only concern removing paragraphs at the bottom

Paragraph at the bottom has been reproducible in Opera and Safari from CKE 3.5.4 rev [6698] In Opera 11.62 it is not possible to copy contents from one editor into another so the problem is only reproducible in Safari.

This issue is reproducible in all Operating Systems.

NOTE: From CKEditor 3.5.3 if you press backspace two or more times (Look step 3) it is possible to delete the default paragraph. If you do that and then paste the text from demo the paragraph at the top will not be present.

Attachments (1)

listTest.doc (23.5 KB) - added by Jakub Ś 13 years ago.

Download all attachments as: .zip

Change History (10)

comment:2 Changed 13 years ago by Jakub Ś

Version: 3.5.33.0

When reproducing this ticket I have also found #8234

comment:4 Changed 13 years ago by Jakub Ś

Description: modified (diff)
Summary: Paste with CKEditor Full Page mode in Chrome on Mac generates bad HTMLPaste or PaasteFromWord with CKEditor in Webkit and Opera inserts empty paragraphs.

Changed 13 years ago by Jakub Ś

Attachment: listTest.doc added

comment:5 Changed 13 years ago by Jakub Ś

Paragraph at the top when pasting from Word in Webkit was described in #7383.

comment:6 Changed 13 years ago by Jakub Ś

Status: newconfirmed

comment:7 Changed 13 years ago by Jakub Ś

Description: modified (diff)

comment:8 Changed 12 years ago by Jakub Ś

Other tickets caused by revision [6698] - #7917, #9500, #8253, #8419.

comment:9 Changed 11 years ago by Frederico Caldeira Knabben

Component: GeneralPlugin : Paste from Word

comment:10 Changed 8 years ago by Tade0

Resolution: fixed
Status: confirmedclosed

Did not record any additional paragraphs. This must have been resolved a while ago.

comment:11 Changed 8 years ago by Anna Tomanek

Milestone: CKEditor 4.6.0
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