upload image using tinymce and cake 2

0

I have an application that uploads images inside of test questions, we use tinymce to put these images but they are not loading, we are using aws to store the images too so necessarily what the code should do is: register the image and insert it inside the aws bucket, the cadastre is done but the image is not sent to the bucket. The usage code is below:

$(document).ready(function(){

    tinymce.init(
    {
        selector: ".tiny",
        plugins: [
            'advlist autolink link image imagetools lists charmap print preview hr anchor pagebreak spellchecker',
            'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime nonbreaking',
            'save table contextmenu directionality emoticons template paste textcolor'
        ],

        toolbar: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link | media fullpage',
        paste_data_images: true,
        language: 'pt_BR',
        images_upload_url: '<?php echo $this->webroot; ?>'
        imagetools_cors_hosts: ['aprovamos.localhost', 'amazonaws.com']
    });
    
asked by anonymous 20.07.2018 / 21:41

0 answers