codex-team/editor.js

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

Open

#2.495 geöffnet am 26. Sept. 2023

Auf GitHub ansehen
 (5 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)TypeScript (26.602 Stars) (1.985 Forks)batch import
good first issue

Beschreibung

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