Skip to content

Commit

Permalink
fix issue editor-js#57: when using placeholder, caret does not appear…
Browse files Browse the repository at this point in the history
… on first click
  • Loading branch information
Jak-Ch-ll committed Feb 12, 2021
1 parent 66ddc2b commit 891bbea
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,30 @@
}

.ce-header p,
.ce-header div{
.ce-header div {
padding: 0 !important;
margin: 0 !important;
}

/**
* Styles for Plugin icon in Toolbar
*/
.ce-header__icon {}
.ce-header__icon {
}

.ce-header[contentEditable=true][data-placeholder]::before{
.ce-header[contentEditable="true"][data-placeholder]::before {
position: absolute;
content: attr(data-placeholder);
color: #707684;
font-weight: normal;
display: none;
cursor: text;
pointer-events: none;
}

.ce-header[contentEditable=true][data-placeholder]:empty::before {
.ce-header[contentEditable="true"][data-placeholder]:empty::before {
display: block;
}

.ce-header[contentEditable=true][data-placeholder]:empty:focus::before {
.ce-header[contentEditable="true"][data-placeholder]:empty:focus::before {
display: none;
}

0 comments on commit 891bbea

Please sign in to comment.