我在index.js中有一个代码来获取将从ckfinder发送的文件(我使用ckeditor进行反应) 代码ckfinder
rsp
但是当我发送文件时,我没有得到它
我的代码index.js:
<CKEditor
config={{
ckfinder: {
// Upload the images to the server using the CKFinder QuickUpload command.
uploadUrl: 'http://localhost:5000/upload'
}
}}
editor={ ClassicEditor }
data="<p>Hello from CKEditor 5!</p>"
onInit={ editor => {
// You can store the "editor" and use when it is needed.
console.log( 'Editor is ready to use!', editor );
} }
onChange={ ( event, editor ) => {
const data = editor.getData();
setForm({...form, text: data})
} }
onBlur={ ( event, editor ) => {
console.log( 'Blur.', editor );
} }
onFocus={ ( event, editor ) => {
console.log( 'Focus.', editor );
} }
/>
如何使用ckfinder获取文件?