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
#1,723 0 comments 3 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.