Skip to content

Instantly share code, notes, and snippets.

@MACscr
Created October 2, 2015 12:50
Show Gist options
  • Save MACscr/5c7e318f8bfc27d5422b to your computer and use it in GitHub Desktop.
Save MACscr/5c7e318f8bfc27d5422b to your computer and use it in GitHub Desktop.
<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