Upload images using the slide app

This commit is contained in:
yflory
2017-06-13 16:15:04 +02:00
parent a57f8679c5
commit f9c26645cf
7 changed files with 258 additions and 19 deletions

View File

@@ -158,16 +158,19 @@ define([
display: 'block',
});
var FM = Cryptpad.createFileManager();
var fmConfig = {
dropArea: $form,
hoverArea: $label,
body: $body
};
var FM = Cryptpad.createFileManager(fmConfig);
$form.find("#file").on('change', function (e) {
var file = e.target.files[0];
FM.handleFile(file);
});
//FM.createDropArea($form, $label, handleFile);
FM.createUploader($form, $label, $body);
// we're in upload mode
Cryptpad.removeLoadingScreen();
};