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

Browser Issue Thumbnail insertion isn't at the end of the message

Discussion in 'Resolved Bug Reports' started by Moshe1010, Jun 14, 2013.

  1. Moshe1010

    Moshe1010 Well-Known Member

    When creating a thread/writing a message, and after that inserting image thumbnail, it puts the thumbnail at the beginning of the text, which makes you to cut/paste the thumbnail to the end of your message; or clicking on your message and while the cursor is at the end, clicking on the thumbnail (instad of clicking Done and then inserting the thumbnail).
    See video for demonstration:


    iPhone 5, iOS 6.1.4
     
    Last edited: Jun 15, 2013
  2. Mike

    Mike XenForo Developer Staff Member

    I couldn't reproduce this when testing - it always inserted at the correct place for me. Is it consistent?

    However, in general it's a tricky issue and one where I don't think anything will change. Some browsers handle the selection in the iframe differently when focusing elsewhere. Webkit generally keeps it (where as IE generally loses it entirely). The problem is that by the time we've been told that focus has moved, we would've already lost the selection.
     
  3. Moshe1010

    Moshe1010 Well-Known Member

    It's consistent only if you press on "Done" after you finish writing. If you cursor stays at the end of the editor, it will insert the thumbnail at the end of the message.
     
  4. Mike

    Mike XenForo Developer Staff Member

    Unfortunately there isn't anything we can do about this - even if we could try something, I don't see any events being fired wheh the done button is clicked, so we can't actually react to it. As soon as that happens, it kills the selection information.
     
  5. CyberAP

    CyberAP Well-Known Member

    Sad to hear. Well, at least we now know to paste images where we want.

    Maybe if a user has uploaded an attachment we should set the focus on the post and don't let him close the editing window by pressing 'Done'? Or at least show a message that'll help user figure out how to insert attachments right where he wants.
     
  6. Mike

    Mike XenForo Developer Staff Member

    There's no way to detect it - "done" triggers nothing in JavaScript.
     

Share This Page