CodeIgniter Forums
CKeditor 5 SimpleUploadAdapter howto? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: CKeditor 5 SimpleUploadAdapter howto? (/showthread.php?tid=81570)



CKeditor 5 SimpleUploadAdapter howto? - spreaderman - 03-19-2022

I am trying to integrate CKeditor 5's SimpleUploadAdapter.  The plugin and config are ok, however, I am unsure how to possibly write the method to upload the image.  If I understand the plugin, I must right an uploadStuff to upload the file, for example, an image as explained here.  I wonder if someone might be able to explain how I might accomplish this.  I have search the internet for example, even in PHP, but cannot find one.  Any help appreciated.


Code:
    ClassicEditor
    .create( document.querySelector( '#post_body' ), {
        simpleUpload: {
          uploadUrl: 'https://development.example.com/uploadStuff',
        }
    } )
    .then( )
            .catch( error => {
            console.error( error );
    } );



RE: CKeditor 5 SimpleUploadAdapter howto? - ignitedcms - 03-19-2022

I might have a look at this later if I got time.


RE: CKeditor 5 SimpleUploadAdapter howto? - spreaderman - 03-19-2022

(03-19-2022, 04:25 AM)ignitedcms Wrote: I might have a look at this later if I got time.

Would be appreciated.