Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1788 from ckeditor/t/ckeditor5/1987
Browse files Browse the repository at this point in the history
Fix: Placeholder should not be visible in the read-only mode. Closes ckeditor/ckeditor5#1987.
  • Loading branch information
Reinmar committed Sep 4, 2019
2 parents 7970f17 + f0717a9 commit 730c417
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion theme/placeholder.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@
*/

/* See ckeditor/ckeditor5#936. */
.ck.ck-placeholder, .ck .ck-placeholder {
.ck.ck-placeholder,
.ck .ck-placeholder {
&::before {
content: attr(data-placeholder);

/* See ckeditor/ckeditor5#469. */
pointer-events: none;
}
}

/* See ckeditor/ckeditor5#1987. */
.ck.ck-read-only .ck-placeholder {
&::before {
display: none;
}
}

0 comments on commit 730c417

Please sign in to comment.