将图像插入CKEditor [英] Insert image to CKEditor
问题描述
我试图在我的电子应用程序中使用CKEditor5和CKEditor-react。
而且我想在编辑器中粘贴图像,但是我遇到错误
I trying to use CKEditor5 and CKEditor-react in my electron app. And i want to paste image in editor, but i have an error
filerepository-no-upload-adapter:上传适配器没有定义。
filerepository-no-upload-adapter: Upload adapter is not defined.
文档说我使用云进行管理。但是我的应用程序必须在本地运行并且没有互联网
有人可以帮助我吗?
Docs says that I mast using cloud. But my app must working locally and without internet Can someone help me?
推荐答案
文档说,在简短地说,这是
The docs say, in short, this:
要在CKEditor 5中处理图像上传,可以使用以下选项之一:
To handle image upload in CKEditor 5 you can use one of these:
- 使用内置的简易图片适配器(云服务) ,
- 使用内置的 CKFinder 适配器(如果需要,可以在本地使用),
- 编写自己的适配器(在这种情况下,请参考
UploadAdapter
界面文档)。
- use the built-in Easy Image adapter (cloud service),
- use the built-in CKFinder adapter (can work locally if you want),
- write your own adapter (in which case, please refer to the
UploadAdapter
interface documentation).
最后一个选项为您提供了完全自由的方式和方式您要将文件发送到的位置。
The last option gives you a complete freedom on how and where you want to send those files.
PS。您可以在此问题中找到更多详细信息:如何启用CKEditor 5是否支持图像上传?
PS. You can find a bit more details in this question: How to enable image upload support in CKEditor 5?
这篇关于将图像插入CKEditor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!