Bug 7165

Summary: REGRESSION: TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
Product: WebKit Reporter: Chris Petersen <c.petersen87>
Component: HTML EditingAssignee: Justin Garcia <justin.garcia>
Status: RESOLVED FIXED    
Severity: Normal CC: ian
Priority: P2 Keywords: InRadar
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
URL: http://tinymce.moxiecode.com/example.php?example=true
Bug Depends on:    
Bug Blocks: 6627    
Attachments:
Description Flags
Screen shot of text appearing in the original location after the drag
none
patch none

Description Chris Petersen 2006-02-09 16:49:18 PST
Summary: After I drag n drop selected text to a different area in the text field, I notice that a copy of the text is still displayed at the original location.


Steps to reproduce:

1) Launch TOT Webkit and go to http://tinymce.moxiecode.com/example.php?example=true
2) Delete all the elements in the top most textarea field
3) Copy teh follwoing text and past into textarea field

Mary had a little lamb
Its fleece was white as snow

4) Select "had a little lamb" and drag this selection so that it hovers at the end of sentence 2. 
5) Mouse up so the text is moved.
6)  The text is moved to the end of sentence 2 but the text is still present at the original location. So we have TWO copies of this text. See screen shot.

I expected the text I moved should ONLY be present at the new location and only this text should be selected.
Comment 1 Chris Petersen 2006-02-09 16:55:31 PST
Created attachment 6374 [details]
Screen shot of text appearing in the original location after the drag
Comment 2 Chris Petersen 2006-02-09 17:06:37 PST
This bug is also in Radar as <rdar://4440344>
Comment 3 Justin Garcia 2006-05-10 19:40:52 PDT
This happens with any content, not just text, and it happens with a plain old editable document inside an iframe.  Renaming.
Comment 4 Ted Rust 2006-07-20 15:55:12 PDT
It's actually even worse than that.  Just tested this scenario with r15467 and dragging an image results in *3* copies -- the original plus 2 additional "dropped" copies.  Maybe that little tidbit of information can help point someone in the right direction?   I wish I knew where to begin looking.
Comment 5 Justin Garcia 2006-09-20 17:50:45 PDT
I have a patch for this.
Comment 6 Justin Garcia 2006-09-20 17:56:13 PDT
Created attachment 10675 [details]
patch
Comment 7 Justin Garcia 2006-09-21 12:33:20 PDT
r16500