Bug 7165 - REGRESSION: TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
Summary: REGRESSION: TinyMCE: Dragging & dropping content always leaves a copy when ed...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Justin Garcia
URL: http://tinymce.moxiecode.com/example....
Keywords: InRadar
Depends on:
Blocks: 6627
  Show dependency treegraph
 
Reported: 2006-02-09 16:49 PST by Chris Petersen
Modified: 2006-09-21 12:33 PDT (History)
1 user (show)

See Also:


Attachments
Screen shot of text appearing in the original location after the drag (70.60 KB, image/png)
2006-02-09 16:55 PST, Chris Petersen
no flags Details
patch (16.57 KB, patch)
2006-09-20 17:56 PDT, Justin Garcia
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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