Help! Embed not working
wonder-image opened this issue · 7 comments
wonder-image commented
Hi I didn't see the embed icon and I extended the class like this
class CustomEmded extends Embed {
static get toolbox() {
return {
title: 'Embed',
icon: '<svg width="20" height="20" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 1 0-6M14 11a5 5 0 0 1 0 6"></path><line x1="14" y1="7" x2="14" y2="7"></line><line x1="10" y1="17" x2="10" y2="17"></line></svg>'
};
}
}
Then I added the class to the tools array
var editor = EditorJS({
tools: {
embed: {
class: CustomEmded,
},
},
});
Now I see the icon and text but pressing doesn't work
Registrazione.schermo.2024-01-05.alle.17.41.39.mov
I have no errors in the console