-
-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Curser is on top line of editor when it is empty #86
Labels
Comments
EhsanCh
changed the title
Curse is on top line of editor when empty
Curser is on top line of editor when it is empty
Jan 3, 2017
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 |
You can use |
Placeholder " " (space) works fine for me using latest versions of Chrome, Firefox, Opera, IE and Edge. |
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;
}
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When content is empty in textarea , cursor is on top border line of editor.
You can see it in demo .
1- delete textarea content
2-click on somewhere else in page
3-click in editor.
The text was updated successfully, but these errors were encountered: