ckeditor custom plugin
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
function MyUploadAdapterPlugin( editor ) {
editor.plugins.get( 'FileRepository' ).createUploadAdapter = function( loader ) {
// ...
};
}
// Load the custom upload adapter as a plugin of the editor.
ClassicEditor
.create( document.querySelector( '#editor' ), {
extraPlugins: [ MyUploadAdapterPlugin ],
// ...
} )
.catch( error => {
console.log( error );
} );