codex-team / codex-team/editor.js
Why is the data attribute of each block not accessible when getting a block by Index or Id?
Open
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
First, this library is awesome!
Is there a specific reason why I can not access the current data structure for a block when doing something like this? Or am I missing something?.
```javascript
const block = this.api.getBlockByIndex(index)
block.data // data undefined
```
All I can access from the block object is...
```javascript
config: (...)
holder: (...)
id: (...)
isEmpty: (...)
name: (...)
selected: (...)
stretched: (...)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.