codex-team/editor.js

can we display placeholder only when editor.js is not in readonly mode

Open

#2,495 创建于 2023年9月26日

在 GitHub 查看
 (5 评论) (2 反应) (0 负责人)TypeScript (1,985 fork)batch import
good first issue

仓库指标

Star
 (26,602 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

can we display editor.js placeholder only when editor.js is not in readonly mode?

const editor = new EditorJS({
  ...
  
  placeholder: 'Let`s write an awesome story!'   <----- only display when readOnly is false.

  ...
});

Thank you.

贡献者指南