@linhx/ckeditor5-adapter-filemanager

0.0.1-alpha.7 • Public • Published

Upload adapter for CKEditor 5

By default, Ckeditor5-adapter-ckfinder uploads file with the FormData name is "upload". This package allow to have a custom FormData name.

Config:

filemanager: {
	uploadUrl: string, // upload url
	fileFormName: string, // custom FormData name of uploading file
	createImageData: (responseData) => { urls: { default: string, /* others size */ } } // if the response data from uploadUrl is not match with the image format https://ckeditor.com/docs/ckeditor5/latest/features/images/image-upload/simple-upload-adapter.html#successful-upload, then you can define a adapter method to create the image data.
}

TODO

  • [ ] allow select uploaded file

Package Sidebar

Install

npm i @linhx/ckeditor5-adapter-filemanager

Weekly Downloads

0

Version

0.0.1-alpha.7

License

GPL-2.0-or-later

Unpacked Size

61.9 kB

Total Files

60

Last publish

Collaborators

  • linhx