Skip to content

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

@collimarco

Description

@collimarco
    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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions