placeholder text doesn't disappear if the user leaves first line of editor blank
See original GitHub issueI’m guessing your query selector checks for an empty <p></p>
on the first line of the editor 😃 the bad news is, that doesn’t necessarily mean the editor is empty haha!
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
How can I add placeholder text when the editor is empty
You can use placeholder: "Your Placeholder Text" option to put placeholder in your Ace Editor.
Read more >Don't Use The Placeholder Attribute - Smashing Magazine
For someone who has never encountered it before, placeholder text may look like entered content, causing them to skip over the input. If ......
Read more >The editor placeholder should disappear when typing, not ...
The idea is that the editor placeholder (editing root, image caption) should act like the native DOM input placeholder. However, its text ......
Read more >:placeholder-shown - CSS: Cascading Style Sheets | MDN
The :placeholder-shown CSS pseudo-class represents any or element that is currently displaying placeholder text.
Read more >::placeholder | CSS-Tricks - CSS-Tricks
:placeholder-shown is for selecting the input itself when it's placeholder text is being shown. As opposed to ::placeholder which styles 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 FreeTop 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
Top GitHub Comments
If the editor is completely empty, like a regular placeholder on an input, I reckon. 👍
Are you sure of what you said ? 🤔 Still very weird behavior on last version…