Opened 13 years ago

Closed 8 years ago

Last modified 8 years ago

#8266 closed Bug (fixed)

Chrome: Paste from Word inserts blank line at top.

Reported by: Keith Hackett 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 Jakub Ś 13 years ago.

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by Jakub Ś

Attachment: test.doc added

comment:1 Changed 13 years ago by Jakub Ś

Keywords: Webkit Opera added; Word pasting Chrome removed
Status: newconfirmed
Version: 3.6.13.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 13 years ago by Satya Minnekanti

Cc: satya_minnekanti@… added
Keywords: IBM added

comment:3 Changed 13 years ago by Jakub Ś

#7383 was marked as duplicate

comment:4 Changed 11 years ago by Frederico Caldeira Knabben

Component: Core : PastingPlugin : Paste from Word

comment:5 Changed 8 years ago by Tade0

Resolution: fixed
Status: confirmedclosed

Fixed with new Paste From Word plugin in 4.6.0.

comment:6 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