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

leading space in section is eaten by browser #75

Closed
bantic opened this issue Aug 13, 2015 · 0 comments
Closed

leading space in section is eaten by browser #75

bantic opened this issue Aug 13, 2015 · 0 comments
Assignees

Comments

@bantic
Copy link
Collaborator

bantic commented Aug 13, 2015

Same issue as #68 but in reverse. If a textNode begins with a leading space when we position the cursor at the start of it, the space gets eaten by the browser.

Example codepen.

This can be recreated making a selection that includes the start of a section up until right before a space character, and hitting <delete>. The start of the section will not show the space, and it won't be there if you type a new character.

Using a no-break space (same fix for #68) fixes this issue as well.

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

No branches or pull requests

1 participant