Opened 13 years ago
Closed 13 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.
- Go to http://ckeditor.com/demo, select all and copy it using CRTL+C
- Go to CKEditor sample (any sample)
- Clear editor contents using Command+A and Backspace
- Paste the demo contents using Command+V
- 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> "<b>Little Red Riding Hood</b>" is a famous <a href="http://en.wikipedia.org/wiki/Fairy_tale" title="Fairy tale">fairy tale</a> about a young girl's ...</p> <p> </p>
And this is the result after executing the above TC:
<p> </p> <div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); "> <h1> </h1> <div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); "> <h1> </h1> <div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); "> <h1> </h1> <div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); "> <h1> </h1> <div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); "> <h1> </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> "<b>Little Red Riding Hood</b>" is a famous <a href="http://en.wikipedia.org/wiki/Fairy_tale" title="Fairy tale">fairy tale</a> about a young girl's ...</p> <div> </div> </div> </div> </div> </div> </div> </div> <p> </p>
Attachments (1)
Change History (4)
Changed 13 years ago by
comment:1 Changed 13 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 13 years ago by
comment:3 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | confirmed → closed |
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.
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)