Ticket #8234 (closed Bug: invalid)
[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.
- 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
Change History
comment:3 Changed 16 months 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.
