codex-team/editor.js

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

Open

#2,316 创建于 2023年3月23日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)TypeScript (1,985 fork)batch import
good first issuenice to have

仓库指标

Star
 (26,602 star)
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

贡献者指南