问题
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: 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?
回答1:
The docs say, in short, this:
To handle image upload in CKEditor 5 you can use one of these:
- 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. You can find a bit more details in this question: How to enable image upload support in CKEditor 5?
来源:https://stackoverflow.com/questions/51984752/insert-image-to-ckeditor