Placeholder doesn't work
See original GitHub issueWhen summernote gets initialized, the contents get initialized to <p><br></p>
. The div is therefore not empty and placeholder doesn’t get shown. Am I missing something here?
Issue Analytics
- State:
- Created 8 years ago
- Comments:17 (4 by maintainers)
Top Results From Across the Web
Input Field Placeholder not working.? - Stack Overflow
Placeholder doesn't work for Inputs that are not the types text so you will have to use value in your case like this...
Read more >Don't Use The Placeholder Attribute - Smashing Magazine
The presence of a placeholder attribute won't be flagged by automated accessibility checking software. However, this doesn't necessarily mean ...
Read more >Html-placeholder does not work with input Field
Note: The placeholder attribute works with the following input types: text, search, url, tel, email, and password. Share.
Read more >::placeholder | CSS-Tricks - 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 >HTML5 Forms: Placeholder Type Attribute - Wufoo
The spec says placeholder should only work on text, search, url, tel, email, password and number input types. Browsers that support the placeholder...
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
I came here because i have been trying all ways to make the placeholder show over the past 2 days.
If your placeholder is not showing, it is CRUCIAL to ensure your summer note div looks like this
NOT THIS
ALSO NOT THIS
Any space between the div will prevent placeholder from showing, and for Firefox, it cause your cursor to start off position too.
on summernote v0.8.1
I am using the current version of Chrome v8 of summernote and the placeholder option still does not work.
Yes, I see that; however I believe that’s a bit of a gotcha. Also, clicking into the editor and hitting backspace to remove the initial paragraph still does not display the placeholder. When I look in the DOM there is in fact a placeholder element of class=“note-placeholder”; however it never shows up.
This was my fix…
Overall I really like this editor!