I'm using EditorJs but it is giving me this warning in the console
«blocks.stretchBlock()» is deprecated and will be removed in the next major release. Please use the «BlockAPI» instead.
How can I use «BlockAPI»
in EditorJs?
Here is my EditorJs init:
const editor = new EditorJS({
tools: {
header: Header,
list: List,
image: Image,
embed: {
class: Embed,
config: {
services: {
youtube: true
}
}
},
},
})