是否可以在提交按钮上单击上传图像,而不是使用Ckeditor5和Ckfinder直接上传到服务器?

I am using Ckeditor5 with Ckfinder to upload an image to the server. The default classic editor is working fine.

Below is my code snippet:

<script>

    var myEditor;

    ClassicEditor
       .create( document.querySelector( '#editor' ), {
           ckfinder: {
                        uploadUrl: 'url'
           }, 

           toolbar: [ 'imageUpload' ]
       } )
       .then( editor => {
            console.log( 'Editor was initialized', editor );
            myEditor = editor;
        })
       .catch( function( error ) {
            console.error( error );
        } );

</script>

I am able to upload an image to the server directly at this point but my requirement is to upload it on submit button click. I researched but unable to find any clue or solution about this. Is it possible or not with Ckeditor5 and Ckfinder at this point? Any help will be appreciated. Thank you.