【发布时间】:2018-08-22 04:15:43
【问题描述】:
我正在尝试弄清楚如何使用 CK Editor 5 上传图像。现在我已经看到了各种不同的插件,但我想了解这对我自己是如何工作的。我注意到的是,如果我点击图片按钮,我会看到一个对话框来上传图片,然后我选择了一张图片,但没有任何反应。
根据我一直在阅读的指南和文章,我的假设是我必须将图像保存到服务器,然后将 url 返回给 ckeditor,以便它可以使用它来显示图像。
我似乎不知道该怎么做。我应该在 ckeditor js 代码中的什么位置添加自己的逻辑,以便它可以拾取上传的图像,将其发送到服务器,然后将 url 返回给 ck 编辑器?
我浏览过很多类似的文档,但我似乎找不到任何东西。
https://docs.ckeditor.com/ckeditor5/latest/features/image.html
https://docs.ckeditor.com/ckeditor5/latest/features/image-upload.html
https://docs.ckeditor.com/ckeditor5/latest/builds/guides/integration/configuration.html
【问题讨论】:
标签: javascript ckeditor ckeditor4.x ckeditor.net ckeditor5