mirror of
https://github.com/discourse/discourse.git
synced 2026-08-13 06:25:11 -05:00
FIX: pasting image in the composer wasn't working in Chrome
This commit is contained in:
@@ -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
|
||||
$uploadTarget.fileupload({
|
||||
url: Discourse.getURL('/uploads.json?authenticity_token=' + encodeURIComponent(csrf)),
|
||||
dataType: 'json'
|
||||
dataType: 'json',
|
||||
pasteZone: $uploadTarget
|
||||
});
|
||||
|
||||
// submit - this event is triggered for each upload
|
||||
|
||||
Reference in New Issue
Block a user