editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

[Bug] Block Tutorial, stretchBlock Deprecated

Open AlbinoGeek opened this issue 2 years ago • 0 comments

The tutorial appears broken in multiple places, this issue specifically about block stretching.

Steps to reproduce:

https://editorjs.io/access-api

  1. Do the Block Tutorial (creating SimpleImage) up to Chapter about API
  2. Add a Image Block
  3. Paste an Image URL into the entry
  4. Enable the "stretch" tune

Expected behavior:

The tutorial shouldn't lead me into a brick wall (deprecation.)

Result:

[ It works, but a deprecation warning is thrown. ]

«blocks.stretchBlock()» is deprecated and will be removed in the next major release. Please use the «BlockAPI» instead.

Device, Browser, OS:

  • Firefox 98.0.2 (64-bit)
  • Fedora Workstation 35 (Linux)

Editor.js version:

2.24.1 according to save output.

Plugins you use with their versions:

Not Applicable

AlbinoGeek avatar Apr 30 '22 20:04 AlbinoGeek