|
|
@ -92,8 +92,10 @@ const editorImagesCustom = new EasyMDE({
|
|
|
|
imageAccept: 'image/png, image/bmp',
|
|
|
|
imageAccept: 'image/png, image/bmp',
|
|
|
|
imageCSRFToken: undefined,
|
|
|
|
imageCSRFToken: undefined,
|
|
|
|
imageMaxSize: 10485760,
|
|
|
|
imageMaxSize: 10485760,
|
|
|
|
imageUploadFunction: (file: File, onSuccess: Function, onError: Function) => {
|
|
|
|
imageUploadFunction: (file: File, onSuccess, onError) => {
|
|
|
|
console.log(file)
|
|
|
|
console.log(file);
|
|
|
|
|
|
|
|
onSuccess('http://image.url/9.png');
|
|
|
|
|
|
|
|
onError('Failed because reasons.');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
imageTexts: {
|
|
|
|
imageTexts: {
|
|
|
|
sbInit: 'Drag & drop images!',
|
|
|
|
sbInit: 'Drag & drop images!',
|
|
|
|