codex-team / codex-team/editor.js
defaultBlock, autoFocus does not work when the editor is initialized as readOnly
Open
good first issue
nice to have
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
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:
1. Initialized editor with readOnly true with autoFocus, defaultBlock
2. Toggle readOnly to false
3. 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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.