question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi! Right now the placeholder it’s in black color and you can’t write in the same line on textarea. I added this lines to your style. I think that it’s better, because the placeholder has appearance as real placeholder.

.public-DraftEditorPlaceholder-inner {
  position: absolute;
  color: #aaaaaa;
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:10
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ramisalemcommented, Oct 4, 2018

@AlvaroIHS Use the CSS contained in the draft.js repo as a starting point. Placeholders would work as expected afterward: https://github.com/facebook/draft-js/blob/master/src/component/utils/DraftStyleDefault.css where should I add that file?

1reaction
SachaMPScommented, May 6, 2016

@AlvaroIHS Use the css contained in the draft.js repo as a starting point. Placeholders whould work as expected afterwards: https://github.com/facebook/draft-js/blob/master/src/component/utils/DraftStyleDefault.css

Read more comments on GitHub >

github_iconTop Results From Across the Web

Placeholder.com: Placeholder.com – The Free Image ...
Placeholder.com is a free image placeholder service for web designers, serving billions and billions of images each year. You can specify image size...
Read more >
Placeholder Definition & Meaning - Merriam-Webster
The meaning of PLACEHOLDER is a person or thing that occupies the position or place of another person or thing. How to use...
Read more >
placeholder - Wiktionary
NounEdit. placeholder (plural placeholders). Something used or included temporarily or as a substitute for something that is not known or must remain ...
Read more >
HTML input placeholder Attribute - W3Schools
The placeholder attribute specifies a short hint that describes the expected value of an input field (e.g. a sample value or a short...
Read more >
placeholder - CSS: Cascading Style Sheets - MDN Web Docs
The ::placeholder CSS pseudo-element represents the placeholder text in an or element.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found