【发布时间】:2021-07-16 07:36:10
【问题描述】:
我正在使用 EditorJs,但它在控制台中给了我这个警告
«blocks.stretchBlock()» is deprecated and will be removed in the next major release. Please use the «BlockAPI» instead.
如何在 EditorJs 中使用«BlockAPI»?
这是我的 EditorJs 初始化:
const editor = new EditorJS({
tools: {
header: Header,
list: List,
image: Image,
embed: {
class: Embed,
config: {
services: {
youtube: true
}
}
},
},
})
【问题讨论】:
标签: javascript editorjs