Placeholder not rendering
See original GitHub issueWhat’s the bug you are facing?
When the editor is empty, either initially, or after deletion, no placeholder is displayed to the user.
A paragraph node is added with the appropriate classes, and a data-placeholder
as set by my configuration, however, there is no displayed placeholder for the user. The Paragraph tag just contains an empty <br/>
How can we reproduce the bug on our side?
Set up basic editor, use @tiptap/extension-placeholder
as per docs
Can you provide a CodeSandbox?
No response
What did you expect to happen?
The placeholder text gets displayed when there is no content.
Anything to add? (optional)
No response
Did you update your dependencies?
- Yes, I’ve updated my dependencies to use the latest version of all packages.
Are you sponsoring us?
- Yes, I’m a sponsor. 💖
Issue Analytics
- State:
- Created a year ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
input placeholder is not showing - Stack Overflow
Thus, placeholder will only be set only on the blur event. To explicitly set the placeholder use the placeholder property of input tag:...
Read more >placeholder-shown - CSS-Tricks
:placeholder-shown , being a pseudo-class, has to select an existing element. It selects the input whenever you're in the placeholder-showing ...
Read more >I'm getting this warning. The xxx placeholder was not rendered ...
"The xxx placeholder was not rendered in the item rendering context Possible causes: Rendering markup was taken from HTML cache, thus no rendering...
Read more >:placeholder-shown - CSS: Cascading Style Sheets | MDN
The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text.
Read more >Dynamic Placeholders Not Displaying Allowed Renderings
The solution is to change the load order in the Modules layer such that the Coveo configuration file is processed ahead of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
add some CSS to your component
Did you manage to find a solution? Adding “first:before:h-0” to emptyNodeClass worked for me.