calumk / editorjs-columns

116 stars 27 forks source link

Setup Issue with passing EditorJs library reference #13

Closed darksnake747 closed 1 year ago

darksnake747 commented 1 year ago

I have this tool in my main editor instance config.

"columns":{
    "EditorJsLibrary": EditorJS,
    "tools":{"alert":{"class":Alert},"checklist":{"class":Checklist}}
}

When I click the columns option in the EditorJS menu, I am getting this error:

TypeError: this.config.EditorJsLibrary is not a constructor

Any ideas what I am doing wrong? This seems pretty simple, but I'm missing something here I'm sure. Thanks!

darksnake747 commented 1 year ago

Very sorry for the wasted time here. My brain was a bit tired. I noticed that my build process somehow removed the "config" key in the definition. Once I added that, it worked. Sorry again; and thanks for the cool plugin!