codex-team / codex-team/editor.js

How to display the placehoder only when editor is empty? (like in previous versions of Editor.js)

Open
#2,962 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

```
this.editor = new EditorJS({
holder: this.contentTarget,
data: this.contentValue,
placeholder: "Let's write an awesome newsletter...",
// ...
```

The above code used to display the placeholder only when the editor was empty.

Now, upgrading Editor.js to the latest version, it displays the placeholder for each empty paragraph...

How can I show that placeholder only when editor is empty? (like in previous versions of Editor.js)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.