Skip to content
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

Open
EhsanCh opened this issue Jan 3, 2017 · 5 comments
Open

Curser is on top line of editor when it is empty #86

EhsanCh opened this issue Jan 3, 2017 · 5 comments
Labels

Comments

@EhsanCh
Copy link

EhsanCh commented Jan 3, 2017

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.
untitled

@EhsanCh 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
@mervick mervick added the bug label Jan 3, 2017
@oasiz
Copy link

oasiz commented Jan 12, 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=" "

@collimarco
Copy link

Placeholder " " doesn't fix. Only a placeholder with a non blank string fixes the issue.

@collimarco
Copy link

You can use placeholder: "\xa0"(non breaking space)

@oasiz
Copy link

oasiz commented Feb 1, 2017

Placeholder " " (space) works fine for me using latest versions of Chrome, Firefox, Opera, IE and Edge.

See: http://chat.oasiz.net/lobby

@EhsanCh
Copy link
Author

EhsanCh commented Feb 1, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants