Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#8922 closed Bug (duplicate)

ctrl-v plain text bug with CKEDITOR.config.enterMode = CKEDITOR.ENTER_BR;

Reported by: Paul Veldema Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 3.6.3
Keywords: Webkit Cc:

Description (last modified by Jakub Ś)

Go to http://nightly.ckeditor.com/7478/_samples/enterkey.html and switch to the ENTER_BR setting.

Ensure the editor is completely empty in code view and switch back to wysiwyg view.

Now try to paste any single line of plain text with crtl-v in the ckeditor and it will not be pasted. An extra observation here is that the cursor disapears.

When pasting with ctrl-v twice in a row the text will be pasted. If you look in code view after only one ctrl-v you see an empty editor.

Pasting multiline plain text with the same steps also goes wrong but slightly different:

  • Use ctrl-c to copy some multi line plain text like:
    a
    b
    c
    d
    
    
  • When pasting with ctrl-v once and looking in code view nothing is added.
  • When pasting with ctrl-v twice in a row you still see nothing in wysiwyg view but when looking in code view you see:
<body id="cke_pastebin" style="position: absolute; top: 8px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; left: -1000px; ">
	<div>
		a</div>
	<div>
		b</div>
	<div>
		c</div>
	<div>
		d</div>
</body>

Expected: to see the pasted text in the editor after the first crtl-v.

Tested here:

  • IE9: works correctly
  • IE8: works correctly
  • FF: works correctly
  • Chrome: bug found
  • Safari: bug found

This is regression that started with ckeditor 3.6.3.

Change History (6)

comment:1 Changed 12 years ago by Paul Veldema

Chrome version tested: 18.0.1025.162 Safari version tested: 5.1.5 (7534.55.3)

comment:2 Changed 12 years ago by Jakub Ś

Keywords: Webkit added
Status: newconfirmed
Version: 3.6.4 (SVN - trunk)3.6.3

Reproducible in Webkit from CKEditor 3.6.3 rev. [7383]

comment:3 Changed 12 years ago by Jakub Ś

Description: modified (diff)

comment:5 Changed 12 years ago by Garry Yao

Resolution: duplicate
Status: confirmedclosed

DUP of #8921.

comment:6 Changed 11 years ago by TomNM

This happens in the ckeditor 4 beta too. We see code like the following:

<p>We&#39;re glad you&#39;ve stopped by our website. Here at&nbsp;Faith Templewe are about knowing him and making him known in the Rochester,NY&nbsp;area. We&#39;d love for you and your family to join us for one of our sunday services soon. With a dynamic&nbsp;youth ministry,exciting children ministry, and challenging&nbsp;adult services, there is sure to be something here for you whole family. We look forward to meeting&nbsp;you and your family soon!&nbsp;</p>
<body id="cke_pastebin" style="position: absolute; top: 10px; width: 1px; height: 280px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; left: -1000px; ">&nbsp;</body>
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