Open Bug 428140 Opened 13 years ago Updated 13 years ago

Changing focus onpaste in contentEditable node is very broken

Categories

(Core :: DOM: Editor, defect)

x86
macOS
defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: tom, Unassigned)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b5) Gecko/2008032619 Firefox/3.0b5
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b5) Gecko/2008032619 Firefox/3.0b5

Focusing another element when onpaste fires in a contentEditable node does very, very weird things, when the text has been copied from the contentEditable node.

Sending focus to a <textarea> results in a duplicate <textarea> being created next to it. Focusing on an <input type="text"> results in the text being inserted before the input, even when that area isn't contentEditable.

Testcases coming shortly.

Reproducible: Always
Maybe its a diffrent bug.
If you paste some text or image into the contentEditable-area, it should get focus, it dont, but you can now write into it.

I found no way to trigger when paste something into the contentEditable-area!
(the mouseup ,at the end of paste, dont fire. Is there a way?)
Sorry for my english, i mean DROP, not PASTE
You need to log in before you can comment on or make changes to this bug.