Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Change filepicker uploading to pickAndStore, fix services defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
sidyadav committed Mar 2, 2015
1 parent df6b451 commit 7245e0a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions angular-redactor-filepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,21 +265,29 @@ RedactorPlugins.filepicker = function() {
this.button.setAwesome('filepicker', 'fa-image');
},
show: function() {
filepicker.pick(this.filepicker.insert, {
filepicker.pickAndStore({
mimetype: 'image/*',
container: 'modal',
multiple: false,
debug: false,
maxSize: 2000 * 1024 * 1024,
folders: false,
services: [
"COMPUTER",
"IMAGE_SEARCH",
"URL",
"FTP"
"DROPBOX",
"GOOGLE_DRIVE",
]
});
}, {
location:'S3',
path:'/',
access: 'public'
}, this.filepicker.insert);

},
insert: function(object) {
html = "<img src='" + object.url + "'>"

html = "<img src='" + object[0].url + "'>"
this.insert.html(html);

this.code.sync();
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-redactor-filepicker",
"main": "angular-redactor-filepicker.js",
"version": "2.2.0",
"version": "2.3.0",
"homepage": "https://github.com/UseFedora/angular-redactor",
"authors": [
"Tyler Garlick <[email protected]>",
Expand Down

0 comments on commit 7245e0a

Please sign in to comment.