Ticket #8234 (closed Bug: invalid)

Opened 3 years ago

Last modified 2 years ago

[Webkit]: Problems when pasting from Demo page

Reported by: j.swiderski 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

path.png (78.5 KB) - added by j.swiderski 3 years ago.

Change History

Changed 3 years ago by j.swiderski

comment:1 Changed 3 years ago by j.swiderski

  • Status changed from new to confirmed

comment:2 Changed 2 years ago by j.swiderski

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 2 years ago by j.swiderski

  • Status changed from confirmed to closed
  • Resolution set to invalid

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 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy