Created
October 28, 2015 13:31
-
-
Save MACscr/d1887a7fad1aeefa50bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(function(){ | |
$('#edit').froalaEditor({ | |
enter: $.FroalaEditor.ENTER_P, | |
imageUploadToS3: { | |
bucket: '<?php echo $bucket; ?>', | |
region: '<?php echo $region; ?>', | |
keyStart: '<?php echo $keyStart; ?>', | |
params: { | |
acl: '<?php echo $acl; ?>', | |
AWSAccessKeyId: '<?php echo $accessKeyId; ?>', | |
policy: '<?php echo $policy; ?>', | |
signature: '<?php echo $signature; ?>', | |
} | |
} | |
}) | |
.on('froala.image.uploadedToS3', function (e, editor, link, key, response) { | |
console.log ('S3 Link:', link); | |
console.log ('S3 Key:', key); | |
}) | |
}); | |
</script> | |
<script> | |
$(function(){ | |
$('#edit').froalaEditor({ | |
enter: $.FroalaEditor.ENTER_P, | |
fileUploadToS3: { | |
bucket: '<?php echo $bucket; ?>', | |
region: '<?php echo $region; ?>', | |
keyStart: '<?php echo $keyStart; ?>', | |
params: { | |
acl: '<?php echo $acl; ?>', | |
AWSAccessKeyId: '<?php echo $accessKeyId; ?>', | |
policy: '<?php echo $policy; ?>', | |
signature: '<?php echo $signature; ?>', | |
} | |
} | |
}) | |
.on('froala.file.uploadedToS3', function (e, editor, link, key, response) { | |
console.log ('S3 Link:', link); | |
console.log ('S3 Key:', key); | |
}) | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment