Ticket #8231 (confirmed Bug)

Opened 3 years ago

Last modified 3 months ago

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

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

Description (last modified by j.swiderski) (diff)

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

listTest.doc (23.5 KB) - added by j.swiderski 2 years ago.

Change History

comment:2 Changed 3 years ago by j.swiderski

  • Version changed from 3.5.3 to 3.0

When reproducing this ticket I have also found #8234

comment:4 Changed 2 years ago by j.swiderski

  • Description modified (diff)
  • Summary changed from Paste with CKEditor Full Page mode in Chrome on Mac generates bad HTML to Paste or PaasteFromWord with CKEditor in Webkit and Opera inserts empty paragraphs.

Changed 2 years ago by j.swiderski

comment:5 Changed 2 years ago by j.swiderski

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

comment:6 Changed 2 years ago by j.swiderski

  • Status changed from new to confirmed

comment:7 Changed 2 years ago by j.swiderski

  • Description modified (diff)

comment:8 Changed 18 months ago by j.swiderski

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

comment:9 Changed 3 months ago by fredck

  • Component changed from General to Plugin : Paste from Word
Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy