Design issue Space before text is not maintained when copied


Well-known member
A little thing that I noticed about the editor..
When copying text that starts with a space, it seems the space is not being copied. To clarify, I copy from the editor.

I'll try to demonstrate.
You have in the editor some text: "Hello what's going on"
I try to copy "[space]what's going on"
But what get copied is only "what's going on"
There is a small amount that I could potentially look to do (without trying much more extensive changes), but it would likely only change IE (or Edge). Firefox seems to maintain the spaces without issue and the default paste handler in Chrome actually puts the paste onto a new line. With the paste handler, Edge has a trailing space (no leading space) which does get trimmed out.

More extensive changes would involve how we access pasted content, which isn't that trivial so it isn't something we would be changing at this point.

As such, I think this has to be a design issue (with a potential browser issue, since I don't know if Chrome even keeps those spaces).
Top Bottom