Opened 6 years ago

Closed 8 months ago

Last modified 8 months ago

#8266 closed Bug (fixed)

Chrome: Paste from Word inserts blank line at top.

Reported by: khackett Owned by:
Priority: Normal Milestone: CKEditor 4.6.0
Component: Plugin : Paste from Word Version: 3.0
Keywords: Webkit Opera IBM Cc: satya_minnekanti@…

Description

In CKEditor 3.61, pasting any content from Word into Chrome 13.078.112 causes extra "blank" line to be inserted before the content.

Steps to replicate: From the CKEditor Demo page, delete the existing content (Ctrl-A and Delete). Then, cut-and-paste content from Word using Ctrl-C then Ctrl-V, the Paste icon, or the Paste from Word icon. Finally, click "Source" to see the code that creates the extra "blank" line that will be inserted on postback.

Example: I copied the phrase "Now is the time for all good men to come to the aid of their country." from Word and pasted into Chrome. Clicking on Source revealed this HTML:

<p>

&nbsp;</p>

<p>

Now is the time for all good men to come to the aid of their country.</p>

Attachments (1)

test.doc (23.5 KB) - added by j.swiderski 6 years ago.

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by j.swiderski

comment:1 Changed 6 years ago by j.swiderski

  • Keywords Webkit Opera added; Word pasting Chrome removed
  • Status changed from new to confirmed
  • Version changed from 3.6.1 to 3.0
  1. Open replacebycode sample
  2. Press CRTL+A DEL
  3. Copy the content from the attached file (Select whole text with a mouse and press CRTL+C)
  4. Paste the text using CRTL+V or Paste From Word button.

Result:Paragraph at the top gets inserted. This is reproducible in Webkit and Opera from CKE 3.0.

Notes:

  1. If you copy only half of the sentence no extra paragraph will be created.
  2. In Webkit, in step 2 if you press backspace few times quickly, no empty paragraph will be inserted at the top.

This issue is most likely related to the #8231 (Maybe even a duplicate).

comment:2 Changed 6 years ago by satya

  • Cc satya_minnekanti@… added
  • Keywords IBM added

comment:3 Changed 5 years ago by j.swiderski

#7383 was marked as duplicate

comment:4 Changed 3 years ago by fredck

  • Component changed from Core : Pasting to Plugin : Paste from Word

comment:5 Changed 8 months ago by Tade0

  • Resolution set to fixed
  • Status changed from confirmed to closed

Fixed with new Paste From Word plugin in 4.6.0.

comment:6 Changed 8 months ago by Anna

  • Milestone set to CKEditor 4.6.0
Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy