Welcome Guest, Not a member yet? Register   Sign In
CKeditor 5 SimpleUploadAdapter howto?

(This post was last modified: 03-19-2022, 03:36 AM by spreaderman.)

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.

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

I might have a look at this later if I got time.
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com

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

Would be appreciated.

Theme © iAndrew 2016 - Forum software by © MyBB