editor-js / image

Image Block for Editor.js
MIT License
234 stars 282 forks source link

Paste handling for «image» Tool hasn't been set up because of the error TypeError: Cannot read property 't' of undefined #151

Open Karamveer200 opened 3 years ago

Karamveer200 commented 3 years ago

Screenshot (7)

`API request- 

image: {
    class: ImageTool,
    config: {
      endpoints: {
        byFile: "apiurl", // Your backend file uploader endpoint
        byUrl: "https://localhost:8008/fetchUrl", // Your endpoint that provides uploading by Url
      },
      additionalRequestHeaders: {
        Authorization: `Bearer ${localStorage.getItem("token")}`,
        "Access-Control-Allow-Origin": "*",
        "Access-Control-Allow-Methods": "GET,PUT,POST,DELETE,PATCH,OPTIONS",
      },
      field: "file",
    },
  },

package.json - 

"devDependencies": {
    "@editorjs/image": "^2.3.1",
     .............
}`
Karamveer200 commented 3 years ago

This yelloe bg error is coming before even clicking on the editor. I have already tried to update to the latest version 2.6.0, but still getting same error.

This error came out of no where. Everyrhing was working perfectly, then I tried using this plugin -https://github.com/trinhtam/editorjs-hyperlink

But this plugin wasn't working. So i removed it and now getting this "t" error

Karamveer200 commented 3 years ago

Screenshot (9)