uploads – EditorJS Setup Image Block with WordPress

Question

I’m coding a blog site with WordPress and I want to use EditorJS as editor. I know there is a plugin for this, but I want to install this editor without plugins.
I can save the written content to the database now and I can edit the previously saved or shared articles, but I cannot add/upload images. How do I upload and use images from the EditorJS Image Block to WordPress?

PS: I found a library called “Plupload” but I don’t know how to use it.

I put the block I was talking about here.

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
  },
},

},

thanks in advance

0
Emirhan Gümüş 1 year 2021-12-31T09:34:55-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse