mervick/emojionearea

Curser is on top line of editor when it is empty

EhsanCh opened this issue · 5 comments

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

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=" "

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

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.

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