codex-team/editor.js

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

開放

#2,316 建立於 2023年3月23日

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (1,985 個分叉)batch import
good first issuenice to have

倉庫指標

星標
 (26,602 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南