codex-team / codex-team/editor.js
How to select a block after inserting it?
Open
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
How to select a block after inserting it or in general do selecting programmatically.
This is how i insert a new block:
`this.myEditor.blocks.insert('paragraph', {text: newBlock.text)}, null, this.myEditor.blocks.getBlocksCount());`
This works fine but how do i select now this block so in frontend, the block is marked?
Thanks for any inputs!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.