Skip to content

Commit

Permalink
Show placeholder text when it's empty
Browse files Browse the repository at this point in the history
Not just when it's not in focus
  • Loading branch information
Michelle committed Aug 6, 2024
1 parent 9579e33 commit e56ce81
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 e56ce81

Please sign in to comment.