xdan / jodit

Jodit - Best WYSIWYG Editor for You
https://xdsoft.net/jodit/
MIT License
1.63k stars 344 forks source link

Filebrowser with ajax call #220

Open AndreiT1 opened 5 years ago

AndreiT1 commented 5 years ago

Hello , I'm trying to integrate the filebrowser and fileuploader into an php application. We already have a media library where you can browse/upload media on amazon.s3 server which is currently seperated from the jodit editor. From what I saw the php-connector package is used to configure your own hosting server. Is there anyway to configure the filebrowser and fileuploader to make ajax call to our own backend that handles the uploading/getting the content ?

songoten28 commented 5 years ago

Take a look at https://xdsoft.net/jodit/doc/options/uploader/

prepareData: function(formdata) {
        file = formdata.getAll("files[0]")[0];
        formdata.append("timestamp", (Date.now() / 1000) | 0);
        formdata.append("image", file);
        return formdata;
      }