我正在尝试在项目中实现/迁移(来自ckeditor4)ckeditor v5.0 .
默认的经典编辑器工作正常 . 问题在于图片上传 . 从弹出窗口中选择图像后显示"Cannot upload file:" . 我已经查看了this问题,但它没有多大帮助 .
以下是我的代码片段:
<script>
var newMyEditor;
ClassicEditor
.create( document.querySelector( '#sendedit' ),{
ckfinder: {
uploadUrl: 'upload url',
}
})
.then( editor => {
console.log( 'Editor was initialized');
newMyEditor = editor;
} )
.catch( error => {
console.error( error );
} );
</script>
Bakend - PHP v5.2服务器 - Windows