We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello! I'm trying to create a block tune for one of my apps, here is the code:
class MyBlockTune { constructor({ api }) { this.api = api; } isTune() { return true } render() { return [ { icon: '<svg>...</svg>', label: 'Tune label', onActivate: () => { } } ] } }
After activating it with:
{ tools: { myBlockTune: MyBlockTune, }, tunes: ['myBlockTune'], }
Editor instance crashes with a following exception thrown:
Which is this line:
After investigating this line a bit with debugger, i can see that this.tunes.myBlockTune is not an instance of anything but is undefined instead.
this.tunes.myBlockTune
undefined
Editor.js version: 2.28.2
The text was updated successfully, but these errors were encountered:
Running into the same issue.
changing:
isTune() { return true }
to:
static get isTune() { return true }
resolves it.
Sorry, something went wrong.
No branches or pull requests
Hello! I'm trying to create a block tune for one of my apps, here is the code:
After activating it with:
Editor instance crashes with a following exception thrown:
Which is this line:
After investigating this line a bit with debugger, i can see that
this.tunes.myBlockTune
is not an instance of anything but isundefined
instead.Editor.js version: 2.28.2
The text was updated successfully, but these errors were encountered: