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

Fixed Deleting Image instead of link it

Discussion in 'Resolved Bug Reports' started by mauzao9, Jun 9, 2013.

  1. mauzao9

    mauzao9 Well-Known Member


    I already asked if this was a bug/reported but ended up ignored several times, then i am reporting this as a bug, at least this was possible in TinyMCE.

    Simply i can't link any image:
    - Add the image to the post
    - Select the Image, click insert/edit link
    - Write the URL, Ok
    - It deletes my image and only adds the Url as Text

    If I do this in firefox instead of replace it generates this BBCODE with the url inside the img code:
    Also is it "As Designed" that we can't select one image with one click like in TinyMCE without need to select it like we do with text?
    Last edited: Jun 9, 2013
  2. Martok

    Martok Well-Known Member

    If I'm reading this correctly, you are adding an image to a post and then wanting to link the image to a website?

    How are you adding an image to a post? Is it an uploaded image or one from another site?

    After clicking on the inserted image, are you clicking on the link button and not the image button to insert the hyperlink?

    What version of Firefox are you using? What platform and OS are you on?

    Have you tried using another browser to see if the problem is replicated?
  3. mauzao9

    mauzao9 Well-Known Member

    Yes, add the image into the post, and then linking it to a site.
    Several ways: - Dragging my avatar in the editor corner into the editor and try to link it, using the image button then paste the url and uploading.

    After select the image i use the Insert / edit link function, yes.

    Latest of Chrome, and the v22 of Firefox, Win7. It happens in both (only that firefox as i posted generates that strange bbcode), i tested with IE and i can select the image, but it still replaces the image with the url after try to use the link function.

    Far I know there is no other way in to link one image to a website in the rich text editor.
  4. Martok

    Martok Well-Known Member

    I'm on Windows 7 and don't have this problem with the latest Chrome and Firefox.

    Do you have any other add-ons on your site that might affect the functionality of the editor?
  5. Brogan

    Brogan XenForo Moderator Staff Member

    It happens here on XenForo.com.

    The behaviour is different from TinyMCE in that images could be highlighted and linked to a URL.
  6. Martok

    Martok Well-Known Member

    Ah, I hadn't realised it was on here!

    Isn't this behaviour then a bug or at least a flaw in the implementation of Redactor?

    There will be times when people want to insert an image and then link that image to a website. A prime example is in sigs - many users on gaming forums use sig images that display a summary of the gamer stats and these are then linked back to the site, usually to a page with more detailed stats.

    Not being able to link to pics in this way (which is a standard way of doing so in other editors and in software too) means that people are going to have to faff around switching to the BBCode editor to add the code there.
  7. mauzao9

    mauzao9 Well-Known Member

    Yes it's indeed happening in this 1.2 implementation.

    About this, I don't see it as the redactor behavior as far i saw in their examples they support it, but yes as a flaw in its implementation in Xenforo as @Martok said and a feature missing.

    In our community, link images to urls is common in some areas where most topics do use such function and in user signatures. From the moment 1.2 is live in our site i know people will ask about this if it isn't there. :(

    Mike can at least use the Redactor function itself tweaked, like double click image opens the menu to change its SRC and link it to url.
    Last edited: Jun 10, 2013
  8. Mike

    Mike XenForo Developer Staff Member

    You should see some changes here regarding this. :)
  9. mauzao9

    mauzao9 Well-Known Member


    Thank you @Mike :)
    It's working nicely with the same 1-click select that makes it easier, also nice to see link/unlink got separate buttons instead of that menu.

Share This Page