Insert image to CKEditor

和自甴很熟 提交于 2019-12-13 03:13:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!