Answers for "adding placeholder to contenteditable div"

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 "adding placeholder to contenteditable div"

Browse Popular Code Answers by Language