codex-team/editor.js

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

Open

#2,495 opened on Sep 26, 2023

View on GitHub
 (5 comments) (2 reactions) (0 assignees)TypeScript (26,602 stars) (1,985 forks)batch import
good first issue

Description

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.

Contributor guide