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

Design Issue Inserted code is deleted when composing rest of post

Discussion in 'Resolved Bug Reports' started by Brogan, Dec 4, 2010.

  1. Brogan

    Brogan XenForo Moderator Staff Member

    This happens in Chrome, not sure about other browsers.

    Start a new thread as normal and click on the Code button to insert the code as follows:

    Then click in the editor window to continue composing the post and the next key press, e.g. Enter, results in this:

    A CTRL+Z brings the text back and then the next key press moves the focus to the top of the editor window so the cursor has to be placed back at the end of the inserted code to continue writing the post.

    This happens pretty much every time.
  2. Floris

    Floris Guest

    I haven't had this happen to me yet.
  3. Kier

    Kier XenForo Developer Staff Member

    Nor me. It seems to be working without a problem on Chrome for Mac. I'll dig out a Windows version to see what happens. What version are you using?
  4. Kier

    Kier XenForo Developer Staff Member

    Can't reproduce with Chrome 8.0.552.215 beta on Windows either.
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Same version as above - 8.0.552.215.
    If I get the chance I'll make a video.

    I suspect it's all related to Chrome though and the interaction with TinyMCE.
  6. Kier

    Kier XenForo Developer Staff Member

    Can you reproduce it consistently, and here on these forums?
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, pretty much every time I use the code box.
  8. ragtek

    ragtek Guest

    This happend also to me with SRWare Iron (based on chromium)
  9. Mike

    Mike XenForo Developer Staff Member

    I've finally managed to reproduce this, and the underlying issue is a nightmare. It relates to nested <p> tags that the browsers are creating when we insert the code. I can't see how it can be reasonably worked around at this point, unfortunately.

Share This Page