codex-team / editor.js

A block-style editor with clean JSON output
https://editorjs.io
Apache License 2.0
28.18k stars 2.06k forks source link

editor.blocks.getCurrentBlockIndex gives incoherent internal value on start #1390

Open sosie-js opened 3 years ago

sosie-js commented 3 years ago

Screenshots:

Device, Browser, OS: FF+linux

Editor.js version: 2.1.9

Plugins you use with their versions: Independant of the plugin

sosie-js commented 3 years ago

Example has been improved with redactor. -We see that it does not react to click on paragraph block. We have to double click to have redactor report on current block index. -When in readonly mode, the current block index is frozen to the last index block.

evanjmg commented 2 years ago

I am getting the same issue here, random index at the start. Really makes it difficult to tell which block is actually selected