-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to distinguish text file or document selection text #1477
Comments
elaborate more, create a jsfiddle with steps to reproduce. |
http://jsfiddle.net/s8kc7wg0/650/ |
Remove the ngf-drag-over-class or set the "reject" class to some non-existing class so it would not show the style on invalid drag. |
When you drag over the content of what is being dragged is not completely available that's why it is not possible to detect the text or actual image being dragged. They will only be available after it has been dropped. So you can just have a specific pattern and make the reject class empty so it would not show it if you want only to allow dropping files from file system. |
thanks. http://jsfiddle.net/s8kc7wg0/654/ when set specific pattern ’.*‘, it's ok for drag the content, but drag file from file system can't be work, it should show over class , actually is reject class |
Change it to |
if set i expect that show dragover style only drag from system file. |
…ass when drag from file system, danialfarid#1477
this works for me |
I drag document selection text or link,it will show drag-over-show class,if i add ngf-pattern to filter,the text file can't be work .
The text was updated successfully, but these errors were encountered: