Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Enable dragging and dropping of text and hyperlinks #1897

Closed
wants to merge 1 commit into from

Conversation

lautis
Copy link

@lautis lautis commented Nov 28, 2012

This enables dragging and dropping of hyperlinks and plain text to input fields inside the file upload area. Default action over input and textarea elements is only prevented when event.dataTransfer contains files.

How to test/reproduce:

  • drag and drop hyperlink from e.g. browser address bar to a text input inside droppable area (say, I have a chat input with file upload functionality)

Current master behavior: Nothing happens.
Expected behavior: Input contains the dragged hyperlink as text.

This enables dragging and dropping of hyperlinks and plain text to input fields inside the file upload area.
@blueimp blueimp closed this in 712b521 Nov 28, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants