0

我正在用 Wordpress 编写一个博客网站,我想使用 EditorJS 作为编辑器。我知道有一个插件,但我想在没有插件的情况下安装这个编辑器。
我现在可以将书面内容保存到数据库中,并且可以编辑以前保存或共享的文章,但我无法添加/上传图像。如何将 EditorJS 图像块中的图像上传和使用到 Wordpress?

我把我正在谈论的块放在这里。

image: {
class: ImageTool,
config: {
  endpoints: {
    byFile: "http://localhost:8008/uploadFile", // Your backend file uploader endpoint
    byUrl: "http://localhost:8008/fetchUrl", // Your endpoint that provides uploading by Url
  },
},

},

提前致谢

4

0 回答 0