editor.js
editor.js copied to clipboard
[Bug] Block Tutorial, stretchBlock Deprecated
The tutorial appears broken in multiple places, this issue specifically about block stretching
.
Steps to reproduce:
https://editorjs.io/access-api
- Do the Block Tutorial (creating SimpleImage) up to Chapter about
API
- Add a Image Block
- Paste an Image URL into the entry
- 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