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

Not a Bug Add Resource - Uploaded images thumbnail not inserted in the correct editor

Discussion in 'Resource Manager Resolved Bugs' started by MtoR, Jun 21, 2015.

  1. MtoR

    MtoR Well-Known Member


    In one of my addons, I have another editor field that is added before the description one.

    When I create a new resource, if I use the "Upload Images" feature and then click on the "Thumbnail" or "Full image" button, the image doesn't get added to the Description editor but in my custom editor added before in the layout.

    Though this strange behavior is due to the fact that my editor comes first, I think the image should still have been added to the correct editor. Guess your js code search for the first editor instance on the page instead of using the editor id ?

  2. Mike

    Mike XenForo Developer Staff Member

    This is an issue with your add-on. There can only be one editor per form that accepts attachments. (You have to opt out.)
  3. MtoR

    MtoR Well-Known Member

    But there are already multiples editors in the RM add resource. Am I wrong ?
  4. Mike

    Mike XenForo Developer Staff Member

    Yes but they have the attachment system disabled in their initialization.
  5. MtoR

    MtoR Well-Known Member

    Oh I see, I'll investigate, thanks for the explanation.

Share This Page