ckeditor自定义上传
Spent almost 2 days figuring out a proper way to use CKEditor5 image uploader. I’ve tried ckFinder, SimpleUploader, etc. but none of them worked maybe because none of the documentations made any sense to me 😂. Luckily I found a stackoverflow conversation and somehow got what I needed working with just some minor tweaks.
花了将近2天的时间来找出使用CKEditor5图像上传器的正确方法。 我尝试了ckFinder,SimpleUploader等,但是它们都不起作用,可能是因为没有任何文档对我有意义sense。 幸运的是,我发现了一个stackoverflow对话,并且通过一些小的调整就以某种方式获得了我需要的东西。
我的目标 (My Goal)
Every time a user copy and paste, drag and drop, or upload an image into my text editor, It will trigger an API that saves the image into an S3 bucket and returns the image S3 url, then embed that image back to the text editor.
每次用户将图像复制,粘贴,拖放或上载到我的文本编辑器中时,它将触发一个API,该API将图像保存到S3存储桶中并返回图像S3 url,然后将该图像嵌入到文本编辑器中。
安装: (Installation:)
Install CKEditor5 for react