EditorJs 警告“«blocks.stretchBlock()» 已弃用,将在下一个主要版本中删除请改用 «BlockAPI»

问题描述

我正在使用 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
        }
      }
    },},})

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)