Curser is on top line of editor when it is empty
EhsanCh opened this issue · 5 comments
EhsanCh commented
oasiz commented
Setting a placeholder attribute within the emojionearea-editor seems to fix this issue. Note that there has to be a value, even if it's just a space.
placeholder=" "
collimarco commented
Placeholder " "
doesn't fix. Only a placeholder with a non blank string fixes the issue.
collimarco commented
You can use placeholder: "\xa0"
(non breaking space)
oasiz commented
Placeholder " " (space) works fine for me using latest versions of Chrome, Firefox, Opera, IE and Edge.
EhsanCh commented
Fix emojionearea.css by adding ‘padding-top: 1em;’ to following rule seems to be better:
.emojionearea .emojionearea-editor:empty::before {
content: attr(placeholder);
display: block;
color: #bbb;
padding-top: 1em;
}