codex-team/editor.js

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

Open

#2,495 opened on 2023年9月26日

GitHub で見る
 (5 comments) (2 reactions) (0 assignees)TypeScript (26,602 stars) (1,985 forks)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.

コントリビューターガイド