zulip/static
Puneeth Chaganti 9c377a05f3 paste: More robust check to verify if clipboard data is an image.
The commit f863a9b567 had modified
jquery.filedrop's paste method to exit early if any of the items in the
clipboardData is of the string kind. The early exit was added to prevent pasting
an image thumbnail for text copied from software like MS Word, instead of
pasting the actual copied text content. When copying an image in a (modern?)
Browser, though, the clipboard seems to contain a html `img` tag item, along
with the actual image file. This resulted in pastes being broken.

This commit modifies the condition checked for the early exit. We now actually
look at the html content in the clipboard to see if it is an `img` tag, in which
case we upload the image, instead of exiting early.

Closes #7130.
2019-01-25 11:40:33 -08:00
..
assets Fix favicon generator script. 2018-01-30 10:32:55 -08:00
audio notifications: Add a setting for changing the notification sound. 2018-12-09 21:25:30 -08:00
generated Move static/third/gemoji to static/generated/emoji. 2016-12-27 20:16:23 -08:00
html HTML validation: Remove xmlns:svg attribute. 2018-07-09 09:45:42 +05:30
icons/fonts tools: Move generate-custom-icon-webfont to a subdirectory. 2018-08-09 15:39:57 -07:00
images digest: Fix the styling of /digest page. 2019-01-07 13:09:29 -08:00
js paste: More robust check to verify if clipboard data is an image. 2019-01-25 11:40:33 -08:00
locale i18n: Sync translation data from Transifex. 2019-01-04 14:42:46 -08:00
styles left sidebar: Fix scrollbar sticking up few pixels above container. 2019-01-25 11:17:06 -08:00
templates stream settings: Hide creating admin-only streams in members UI. 2019-01-24 10:51:49 -08:00
third paste: More robust check to verify if clipboard data is an image. 2019-01-25 11:40:33 -08:00
ts webpack: Upgrade webpack version 4.5.0. 2018-04-23 15:49:33 -07:00
.gitignore tools: Move generate-custom-icon-webfont to a subdirectory. 2018-08-09 15:39:57 -07:00
favicon.ico
node_modules Create static/node_modules symlink. 2016-08-25 15:32:08 -07:00