Opened 13 years ago

Closed 12 years ago

#8234 closed Bug (invalid)

[Webkit]: Problems when pasting from Demo page

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Webkit Cc:

Description

First of all I'm not sure if this is not duplicate.
Since I haven't found any thing like that I'm reporting it.

I have found this issue when reproducing #8231.

  1. Go to http://ckeditor.com/demo, select all and copy it using CRTL+C
  2. Go to CKEditor sample (any sample)
  3. Clear editor contents using Command+A and Backspace
  4. Paste the demo contents using Command+V
  5. Now press few times the following combination: CRTL+A, Backspace, CRTL+V

Result: Some parts of the code are duplicated what can be seen in elements path(See attachment)

NOTE:
I have stripped down the demo code to

<h1>
	<img alt="" src="http://a.cksource.com/c/1/inc/img/demo-little-red.jpg" style="margin-left: 10px; margin-right: 10px; float: left; width: 120px; height: 168px;" />Little Red Riding Hood</h1>
<p>
	&quot;<b>Little Red Riding Hood</b>&quot; is a famous <a href="http://en.wikipedia.org/wiki/Fairy_tale" title="Fairy tale">fairy tale</a> about a young girl&#39;s ...</p>
<p>
	&nbsp;</p>

And this is the result after executing the above TC:

<p>
	&nbsp;</p>
<div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); ">
	<h1>
		&nbsp;</h1>
	<div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); ">
		<h1>
			&nbsp;</h1>
		<div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); ">
			<h1>
				&nbsp;</h1>
			<div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); ">
				<h1>
					&nbsp;</h1>
				<div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); ">
					<h1>
						&nbsp;</h1>
					<div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); ">
						<h1>
							<img alt="" src="http://a.cksource.com/c/1/inc/img/demo-little-red.jpg" style="cursor: default; margin-left: 10px; margin-right: 10px; float: left; width: 120px; height: 168px; " />Little Red Riding Hood</h1>
						<p>
							&quot;<b>Little Red Riding Hood</b>&quot; is a famous&nbsp;<a href="http://en.wikipedia.org/wiki/Fairy_tale" title="Fairy tale">fairy tale</a>&nbsp;about a young girl&#39;s ...</p>
						<div>
							&nbsp;</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<p>
	&nbsp;</p>

Attachments (1)

path.png (78.5 KB) - added by Jakub Ś 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by Jakub Ś

Attachment: path.png added

comment:1 Changed 13 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 12 years ago by Jakub Ś

Other tickets that also treat about copy/paste problem in Webkit (They partially duplicate each other but every ticket adds something new to the problem):

#7146
#5517
#8231
#5388 (This one is somewhat different but perhaps could be fixed with others)

comment:3 Changed 12 years ago by Jakub Ś

Resolution: invalid
Status: confirmedclosed

Surrounding divs on paste were already described in #7146

As for duplicated h1 tag - pressing CRTL+A and Backspace does not remove h1 tag what is shown in element's path. Al you have to and should do is press backspace key one more time.

I'm closing this issue as an invalid.

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