standard image upload button
build integration
https://docs.ckeditor.com/ckeditor5/latest/builds/guides/development/custom-builds.html
npm install ckeditor5-simple-upload
add this plugin and remove the ckfinder and easyimage plugins
// src/ckeditor.js ;;;;;//import CKFinder from '@ckeditor/ckeditor5-ckfinder/src/ckfinder';//import EasyImage from '@ckeditor/ckeditor5-easy-image/src/easyimage'; // ... // Plugins to include in the build.ClassicEditorbuiltinPlugins = Essentials UploadAdapter Autoformat Bold Italic BlockQuote// CKFinder,// EasyImage, Heading Image SimpleuploadPlugin // ... ClassicEditordefaultConfig = toolbar: items: 'heading' '|' 'bold' 'italic' 'link' 'bulletedList' 'numberedList' 'imageUpload' 'blockQuote' 'insertTable' 'mediaEmbed' 'undo' 'redo' // ... ### configuration ```javascriptClassicEditor.create(document.querySelector( '#editor' ), { simpleUpload: { uploadUrl: 'http://127.0.0.1/my-upload-endpoint' }})
var { return }ClassicEditor
backend
the endpoint will receive a file named upload and should return the image url
success response :
failure response :