Updated the editor directive to handle s3 uploads

Updated the editor to handle s3 uploads.