This repository was archived by the owner on Jan 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -265,21 +265,29 @@ RedactorPlugins.filepicker = function() {
265
265
this . button . setAwesome ( 'filepicker' , 'fa-image' ) ;
266
266
} ,
267
267
show : function ( ) {
268
- filepicker . pick ( this . filepicker . insert , {
268
+ filepicker . pickAndStore ( {
269
269
mimetype : 'image/*' ,
270
270
container : 'modal' ,
271
+ multiple : false ,
272
+ debug : false ,
273
+ maxSize : 2000 * 1024 * 1024 ,
274
+ folders : false ,
271
275
services : [
272
276
"COMPUTER" ,
273
277
"IMAGE_SEARCH" ,
274
278
"URL" ,
275
- "FTP"
279
+ "DROPBOX" ,
280
+ "GOOGLE_DRIVE" ,
276
281
]
277
- } ) ;
282
+ } , {
283
+ location :'S3' ,
284
+ path :'/' ,
285
+ access : 'public'
286
+ } , this . filepicker . insert ) ;
278
287
279
288
} ,
280
289
insert : function ( object ) {
281
- html = "<img src='" + object . url + "'>"
282
-
290
+ html = "<img src='" + object [ 0 ] . url + "'>"
283
291
this . insert . html ( html ) ;
284
292
285
293
this . code . sync ( ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angular-redactor-filepicker" ,
3
3
"main" : " angular-redactor-filepicker.js" ,
4
- "version" : " 2.2 .0" ,
4
+ "version" : " 2.3 .0" ,
5
5
"homepage" : " https://github.com/UseFedora/angular-redactor" ,
6
6
"authors" : [
7
7
" Tyler Garlick <tjgarlick@gmail.com>" ,
You can’t perform that action at this time.
0 commit comments