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 (1,985 forks)batch import
good first issue

Repository metrics

Stars
 (26,602 stars)
PR merge metrics
 (No merged PRs in 30d)

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