Skip to content

Commit

Permalink
Merge pull request #1177 from basecamp/show-placeholder-when-empty
Browse files Browse the repository at this point in the history
Show placeholder text when it's empty
  • Loading branch information
brunoprietog authored Aug 7, 2024
2 parents 9579e33 + e56ce81 commit dd302a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trix/elements/trix_editor_element.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ installDefaultCSSForTagName("trix-editor", `\
display: block;
}
%t:empty:not(:focus)::before {
%t:empty::before {
content: attr(placeholder);
color: graytext;
cursor: text;
Expand Down

0 comments on commit dd302a3

Please sign in to comment.