ckeditor自定义上传_带有自定义图像上传器的ckeditor5React

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 reaction when my code worked 😂
我的代码有效时的React😂

我的目标 (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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值