codex-team / codex-team/editor.js
[Bug] Block Tutorial, stretchBlock Deprecated
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
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**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.