Tiptap: Placeholder appeared when content is not empty

Created on 26 Sep 2019  路  4Comments  路  Source: ueberdosis/tiptap

Describe the bug
In my project, placeholder is only visible when the editor is completely empty, but i'm just empty in the first line, and have content the next line, now i focus the first line, placeholder appeared.

Steps to Reproduce / Codesandbox Example
Steps to reproduce the behavior:

  1. Empty first line.
  2. Input some content in the second line.
  3. Focus the first line.
  4. Placeholder appeared.

Can reproduce in https://tiptap.scrumpy.io/placeholder

Expected behavior
Only show placeholder when the editor is completely empty.

Screenshots
灞忓箷蹇収 2019-09-26 14 47 57

Environment

  • OS Mac
  • Browser Chrome
  • Desktop
bug

Most helpful comment

i've added a fix for this in 1472254

there is a new emptyEditorClass option you can use for Placeholder

All 4 comments

Same on FF (i think this bug isn't specific to a browser/OS)
image
i saw commit/release his last days, the author doesn't seem to matter to this bug 馃

i've added a fix for this in 1472254

there is a new emptyEditorClass option you can use for Placeholder

Works well 馃憤 thanks

@philippkuehn This does not work as needed if you take this example from the site.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

santicros picture santicros  路  3Comments

winterdedavid picture winterdedavid  路  3Comments

git-mischa picture git-mischa  路  3Comments

nekooee picture nekooee  路  3Comments

asseti6 picture asseti6  路  3Comments