codex-team / codex-team/editor.js
[Bug] unable to get all the blocks of editor, in rendered hook of a newly inserted block
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
I'm trying to get all the blocks in the editor, inside `rendered` hook of a block, but it's returning an empty array, like there's no blocks in the editor.
Steps to reproduce:
1. you have to setup an editor instance with some blocks already in it
2. then define a `rendered` hook in another block and try to get the edtor blocks within that hook
3. you'll get an empty array, instead of the array containing all the blocks in the editor
4. well it works fine in the `updated` hook
Expected behavior:
it should return an array containing all the blocks already in the editor
Screenshots:

This is what I'm trying to do in that function call

here's the called function
Device, Browser, OS:
Dell Inspiron, Chrome, LInux
Editor.js version:
2.19.3
Plugins you use with their versions:
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.