Opened 12 years ago

Closed 12 years ago

#8932 closed Bug (duplicate)

Copy/paste from CKEditor to CKEditor inserts extra divs

Reported by: hans_ch Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version:
Keywords: Cc:


In Chrome 18 when doing copy/paste from a CK Editor to a CK Editor invalid nested extra DIVs are being inserted mixed with the P elements.

Steps to reproduce:

Go to:

Content in the editor: <p>

This is some <strong>sample text</strong>. You are using <a href="">CKEditor</a>.</p>

  1. Insert new paragraph at the end (hit return)
  2. Select all (Ctrl+A) and copy (Ctrl+C)
  3. Go to the end of the editor (the blank line)
  4. Paste in the text (Ctrl+V) several times

When moving the cursor from one line to another the tag list at the bottom will show something like this:


When swithing to source-mode and back again, an extra (empty) paragraph is inserted after the first line and all the lines after that has astrcture like this:


Appears in Chrome 18, and NOT in FireFox 11

Change History (1)

comment:1 Changed 12 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed
Version: 3.6.4 (SVN - trunk)

Pasting in Webkit was already reproted in #6436, #7146 and #6131.
This ticket is DUP of #7146.

@hans_ch good finding. I thought that this ticket is no longer reproducible in Chrome but you have shown the way to reproduce it again. I have added your TC to ticket #7146.

Pasting contents wrapped in DIV is Webkit issue which will fix in v4 of the editor. Editor will try to remove extra content added by Chrome.

As for this extra P please read - it explains why is that happening.

All of those problems should be fixed in v4 of editor.

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