codex-team/editor.js

defaultBlock, autoFocus does not work when the editor is initialized as readOnly

Open

#2.316 geöffnet am 23. März 2023

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (1.985 Forks)batch import
good first issuenice to have

Repository-Metriken

Stars
 (26.602 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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