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

(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.


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


Messages In This Thread
CKeditor 5 SimpleUploadAdapter howto? - by spreaderman - 03-19-2022, 03:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB