ClassicEditor
.create( editorElement, {
ckfinder: {
uploadUrl: 'my_server_url'
}
} )
.then( ... )
.catch( ... );
What should be my server response? I am using Java in the backend. Whatever my response is, it throws a dialog box 'cannot upload file'.
You can configure CKEditor to upload files
ClassicEditor.create( document.querySelector( '#editor' ), {
For the more details visit this link : https://docs.ckeditor.com/ckeditor5/latest/features/image-upload.html
this is my code for Ckeditor 5 and Phalcon framework.#products_desc point to textarea id.
and my php controller:
The
ckfinder.uploadUrl
property configures theCKFinderUploadAdapter
plugin. This plugin is responsible for communication with the CKFinder's server-side connector.So, in other words, your server should run the CKFinder's server-side connector. This is a proprietary software, so I won't go deeper into how it works.
If you wish to learn about all ways to configure image upload, please read How to enable image upload support in CKEditor 5?.
Success response :
Failure response :