-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Spaces not preserved on cut/paste in Quill #1280
Comments
Related #996 |
@jhchen Did you get a chance to take a look at this/the PR? I would love any comments or feedback. |
It's not clear changing the white-space property is safe from side effects. Also how exactly do you enter a non-breaking space from the keyboard? |
In most user cases, non-breaking spaces will be added when the user is copy/pasting from a source that uses non-breaking spaces in their HTML. If you are just trying to test using an Apple computer, you can also add a non-breaking space from the standard US keyboard by typing option+space. |
And on my system, one enters a non-breaking space using |
Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide 🙏 |
If I type
testing testing
with one "regular" space (char#32) and one non-breaking space (char#160) between the words, then when I cut/paste this message the regular is preserved but the nbsp is not preserved.Steps for Reproduction
Expected behavior:
Both spaces are kept when I cut/paste this message.
Actual behavior:
Half the spaces are removed with each cut/paste cycle until only a single regular space remains. In the case where there is only one nbsp, it is not removed, though it is converted into a regular space.
Platforms:
Mac OS Sierra, Google Chrome Version 55.0.2883.95 (64-bit)
Version:
Quill version 1.1.9
The text was updated successfully, but these errors were encountered: