[英]CkEditor5 and CKFinder
我希望这是一个非常基本的问题。
当我尝试使用 CKeditor 5 添加图像时,控制台中不断收到“无上传适配器”错误消息 - 阅读更多: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error- code.html#error-filerepository-no-upload-adapter
以下是文档中的说明。
仅配置图片上传 借助 CKFinder 上传适配器,此功能可以自动将图片上传到服务器(例如,当图片被放入内容中时)。 它只需要正确的 config.ckfinder.uploadUrl 路径。 假设在https://example.com/ckfinder/下安装(可用)CKFinder PHP 服务器端连接器,请使用以下快速上传命令 ZE6B391A8D2C4D45902A23A8B6Z58 启用图像上传:
import CKFinder from '@ckeditor/ckeditor5-ckfinder/src/ckfinder';
ClassicEditor
.create( document.querySelector( '#editor' ), {
plugins: [ CKFinder, ... ],
// Enable the "Insert image" button in the toolbar.
toolbar: [ 'uploadImage', ... ],
ckfinder: {
// Upload the images to the server using the CKFinder QuickUpload command.
uploadUrl: 'https://example.com/ckfinder/core/connector/php/connector.php? command=QuickUpload&type=Images&responseType=json'
}
} )
.then( ... )
.catch( ... );
我已将上述代码添加到我的编辑器存在于标签中的网页上。 我做错了吗? 是否应该将此代码添加到其他地方,在我缺少的其他地方的配置文件中?
链接到相关文档 - https://ckeditor.com/docs/ckeditor5/latest/features/image-upload/ckfinder.html
如果我将 go 转到示例页面 - http://example.com/ckfinder/samples/full-page-open.html ,则上传程序工作正常
没有得到这个工作,所以使用https://github.com/ckfinder/ckfinder-laravel-package代替。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.