codex-team/editor.js
defaultBlock, autoFocus does not work when the editor is initialized as readOnly
Aperta
#2316 aperta il 23 mar 2023
good first issuenice to have
Metriche repository
- Star
- (26.602 stelle)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
Describe a bug. defaultBlock, autoFocus does not work when the editor is initialized as readOnly and then toggled back to readOnly false. Steps to reproduce:
- Initialized editor with readOnly true with autoFocus, defaultBlock
- Toggle readOnly to false
- defaultBlock, autoFocus does not work.
Expected behavior: When toggling back to readOnly false, autoFocus and defaultBlock should still work
Device, Browser, OS: MacOS, Google Chrome
Editor.js version: 2.26.5