mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 11:22:47 +08:00
FIX: pasting image in the composer wasn't working in Chrome
This commit is contained in:
parent
4fd0200df8
commit
6556e1cb10
|
@ -314,7 +314,8 @@ var ComposerView = Discourse.View.extend(Ember.Evented, {
|
||||||
// NOTE: we need both the .json extension and the CSRF token as a query parameter for IE9
|
// NOTE: we need both the .json extension and the CSRF token as a query parameter for IE9
|
||||||
$uploadTarget.fileupload({
|
$uploadTarget.fileupload({
|
||||||
url: Discourse.getURL('/uploads.json?authenticity_token=' + encodeURIComponent(csrf)),
|
url: Discourse.getURL('/uploads.json?authenticity_token=' + encodeURIComponent(csrf)),
|
||||||
dataType: 'json'
|
dataType: 'json',
|
||||||
|
pasteZone: $uploadTarget
|
||||||
});
|
});
|
||||||
|
|
||||||
// submit - this event is triggered for each upload
|
// submit - this event is triggered for each upload
|
||||||
|
|
Loading…
Reference in New Issue
Block a user