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

Fix #234 - Cursor rendering incorrectly in firefox #1113

Merged
merged 2 commits into from
Jun 17, 2016
Merged

Fix #234 - Cursor rendering incorrectly in firefox #1113

merged 2 commits into from
Jun 17, 2016

Conversation

nmielnik
Copy link
Member

@nmielnik nmielnik commented Jun 4, 2016

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
New tests added? not needed
Fixed tickets #234
License MIT

Description

In Firefox, when the editor element is completely empty (including when it doesn't have <p><br /></p>), the absolutely positioned pseudo-element used for a placeholder affects where the blinking cursor appears once the editor is focused.

When the pseudo-element is positioned relative in this case, everything renders as expected. However, when positioned relative, the placeholder renders incorrectly for other cases and renders incorrectly in other browsers.

This fix ensures that only in firefox, and only when the editor element is completely empty, the placeholder is positioned relative. As far as I can tell, this fixes the issue.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 94.935% when pulling b004db1 on fix-234 into d496a1c on master.

@nmielnik nmielnik changed the title Fix #234 - Cursor rendering incorrectly in firefox [WIP] Fix #234 - Cursor rendering incorrectly in firefox Jun 6, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 94.898% when pulling dbcca5b on fix-234 into 3cf797e on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 94.902% when pulling a1c2f80 on fix-234 into a8d2932 on master.

@nmielnik nmielnik changed the title [WIP] Fix #234 - Cursor rendering incorrectly in firefox Fix #234 - Cursor rendering incorrectly in firefox Jun 17, 2016
@j0k3r
Copy link
Contributor

j0k3r commented Jun 17, 2016

👍

@j0k3r j0k3r merged commit 00183a5 into master Jun 17, 2016
@j0k3r j0k3r deleted the fix-234 branch June 17, 2016 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants