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

Fixed Adding link below exsisting link problem

Discussion in 'Resolved Bug Reports' started by AndyB, Jan 20, 2014.

  1. AndyB

    AndyB Well-Known Member

    When I edit a post to add a link, if I paste the link below an existing link, the URL of the existing link is used.

    Steps to reproduce:

    1) Create a new post
    2) Paste this -> http://xenforo.com/community/
    3) Save the post
    4) Edit the post
    5) Paste this -> https://www.google.com/
    6) Save the post

    You will see the text for the second link will be for Google, but clicking on the link will go to Xenforo.

    I'm using Firefox on OS X.
  2. whynot

    whynot Well-Known Member

    Last edited: Jan 20, 2014
  3. AndyB

    AndyB Well-Known Member

    Must be a Firefox running on OS X issue.
  4. md_5

    md_5 Well-Known Member

    What XenForo version? I think TinyMCE in Xenforo 1.0, 1.1 did this. I just tested in XenForo 1.2 here, no issues.
  5. Moshe1010

    Moshe1010 Well-Known Member

    I've tried to replicate this with Firefox 26, Chrome 32, and the latest Safari on OS X 10.9.1, but I failed to do that. I can't reproduce this.
  6. Liam W

    Liam W Well-Known Member

  7. Moshe1010

    Moshe1010 Well-Known Member

    OK, Andy and I were able to reproduce it. The links should be copied from the actual address bar when the two websites are open at 2 different tabs and not from the messages here. It does that only with FF 26 OS X.
    Liam W and AndyB like this.
  8. CyclingTribe

    CyclingTribe Well-Known Member

  9. CyclingTribe

    CyclingTribe Well-Known Member

    Confirmed - Win 7 - FF 26:


    Steps I took:
    • Pasted the text for the first link and posted.
    • Copied the text for the second link.
    • Edited the post, clicked in the editor window, and the cursor was placed at the very end of the first link.
    • Pressed RETURN to put the cursor on the second line.
    • Pasted the text of the second link and saved changes.

    It appears the closing URL tag is being wrapped to the right-side of the cursor and in pressing RETURN the original link is being extended to the second line.
  10. Mike

    Mike XenForo Developer Staff Member

    I confirmed this yesterday as well. It seems as if the browser is getting confused when the <a> tag is created and it connects to the previous one.
    Liam W likes this.
  11. Mike

    Mike XenForo Developer Staff Member

    I've added a workaround for this in 1.3. Firefox actually maintains the link when pressing enter, though we immediately unlink it which appears to fix it when you type, but it doesn't actually remove the link until a key is typed, so pasting maintains the link. I've adjusted this to actively remove the link.
    Chris D, Ryan_, AndyB and 2 others like this.
  12. AndyB

    AndyB Well-Known Member

    Thank you, Mike. Works perfect now!

Share This Page