codex-team / codex-team/editor.js
editor.blocks.getCurrentBlockIndex gives incoherent internal value on start
Open
bug
ready for implementation
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
- Describe a bug.
On start/load, editor.blocks.getCurrentBlockIndex() return last index of the block inserted
- Steps to reproduce:
[see example](http://sosie.sos-productions.com/editor.js/example/example-invalid-internal-blockindex.html)
Finish the demo by clicking on the button of the Truth..the saving button gives the expected behavior
- Expected behavior:
should return -1 expected as no block is selected
Screenshots:
Device, Browser, OS: FF+linux
Editor.js version: 2.1.9
Plugins you use with their versions: Independant of the plugin
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.