Opened 5 years ago

Closed 5 years ago

#8921 closed Bug (fixed)

Paste on a newly created ckeditor instance does not work on chrome

Reported by: Alex Owned by: garry.yao
Priority: Normal Milestone: CKEditor 3.6.4
Component: Core : Pasting Version: 3.6.3
Keywords: Webkit Cc:


Steps to reproduce:

  • open a page where CK is instantiated
  • click in edit area
  • paste some text

What happens on Firefox: the pasted text appears in the editor What happens on Chrome: the caret disappears and no text is entered in the editor

Attachments (1)

8921.patch (960 bytes) - added by garry.yao 5 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 5 years ago by Alex

After a bit of testing I discovered that the problem arise only when CK is istantiated with those options:

CKEDITOR.replace( 'area',{
 autoParagraph : false,

comment:2 Changed 5 years ago by j.swiderski

  • Keywords Webkit added; chrome removed
  • Status changed from new to confirmed

Reproducible from CKEditor 3.6.3 rev. [7383]

Just insert one or both of the below:

config.autoParagraph = false;
config.enterMode = CKEDITOR.ENTER_BR;

comment:3 Changed 5 years ago by westcoastbc

I have created a test program at:

that illustrates the problem.

I have set: config.enterMode = CKEDITOR.ENTER_P;

and the problem remains

comment:4 Changed 5 years ago by j.swiderski

@westcoastbc I have written

one or both of the below

what means that only one of those options can cause this problem.

Yes you have set config.enterMode = CKEDITOR.ENTER_P; but you have also set CKEDITOR.config.autoParagraph = false; which causes the problem.

comment:5 Changed 5 years ago by garry.yao

Last edited 5 years ago by garry.yao (previous) (diff)

Changed 5 years ago by garry.yao

comment:6 follow-up: Changed 5 years ago by garry.yao

  • Milestone set to CKEditor 3.6.4
  • Owner set to garry.yao
  • Status changed from confirmed to review

comment:7 in reply to: ↑ 6 Changed 5 years ago by westcoastbc

Replying to garry.yao: How do I implement the above patch? I have added the code in 8921.patch to _source\plugins\clipboard\plugin.js but the problem remains.

comment:8 Changed 5 years ago by j.swiderski

And what CKEditor script are you using on your page ckeditor.js or ckeditor_source.js? Changes in _source will be only visible when using ckeditor_source.js but this is good only for development. In release code ckeditor.js should be use.

Proper flow to apply the patch is to get SVN version of CKEditor, apply patch build new release. Please see comment from and doc file from

comment:9 Changed 5 years ago by garry.yao

  • Status changed from review to assigned

I've moved the review request to #9042 instead.

comment:10 Changed 5 years ago by garry.yao

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy