image icon indicating copy to clipboard operation
image copied to clipboard

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

Open Karamveer200 opened this issue 4 years ago • 2 comments

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 avatar Jun 10 '21 06:06 Karamveer200

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 avatar Jun 10 '21 06:06 Karamveer200

Screenshot (9)

Karamveer200 avatar Jun 10 '21 06:06 Karamveer200