Answers for "how to add placeholder in contenteditable?"

1

placeholder for contenteditable

[contenteditable=true]:empty:before{
  content: attr(placeholder);
  pointer-events: none;
  display: block; /* For Firefox */
}
Posted by: Guest on July-10-2021

Code answers related to "how to add placeholder in contenteditable?"

Browse Popular Code Answers by Language