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 (26,602 star) (1,985 fork)batch import
good first issue

描述

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.

貢獻者指南