1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Design Issue Space before text is not maintained when copied

Discussion in 'Resolved Bug Reports' started by rellect, Jan 19, 2016.

  1. rellect

    rellect 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"
     
    Xon likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    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).
     

Share This Page